What did you make your php form on?

|
ollythestallion 2022-08-17 13:34:10
How do I do that
Fox 2022-08-17 13:35:17
ollythestallion 2022-08-17 13:34:10
How do I do that

what did you make your php form on?

ollythestallion 2022-08-17 13:35:27
Can I share anydesk with u?!
ollythestallion 2022-08-17 13:35:33
Fox 2022-08-17 13:35:17
what did you make your php form on?

Html

ollythestallion 2022-08-17 13:35:42
It’s a loan form
ollythestallion 2022-08-17 13:35:48
With attachment
Fox 2022-08-17 13:35:50
ollythestallion 2022-08-17 13:35:33
Html

i mean xampp/nginx

ollythestallion 2022-08-17 13:36:00
It’s a live website
ollythestallion 2022-08-17 13:36:02
Hosted
Osppro 2022-08-17 13:36:05
Am here I can help but at a fee
Fox 2022-08-17 13:36:22
ollythestallion 2022-08-17 13:36:00
It’s a live website

so, its a cpanel?

ollythestallion 2022-08-17 13:36:26
Yes
Fox 2022-08-17 13:37:10
ollythestallion 2022-08-17 13:36:26
Yes

you can search for “error” and an option regarding error log will show up

Fox 2022-08-17 13:37:14
there you can access the logs
Osppro 2022-08-17 13:37:46
No… U go check your. htaccess files
Osppro 2022-08-17 13:37:54
U try to first remove it
Osppro 2022-08-17 13:38:03
By default it will be hidden
Fox 2022-08-17 13:38:17
Osppro 2022-08-17 13:37:46
No… U go check your. htaccess files

that is not necessary, he is having issues where form is not sending an email

Osppro 2022-08-17 13:38:18
So u go to settings then u try to find out out
Osppro 2022-08-17 13:38:50
Fox 2022-08-17 13:38:17
that is not necessary, he is having issues where form is not sending an email

Oh.. Okay… Did he set the mails

ollythestallion 2022-08-17 13:39:08
Okay I have deleted all the written php now the file is Empty
Prachi_cool 2022-08-17 13:39:15
Full time php developer, for noida location
Fox 2022-08-17 13:39:17
jeez
ollythestallion 2022-08-17 13:39:24
So where do I start now
Prachi_cool 2022-08-17 13:39:51
CTC : 6.0 to 8.4
Fox 2022-08-17 13:39:56
ollythestallion 2022-08-17 13:39:24
So where do I start now

why did u delete it lol

Fox 2022-08-17 13:40:36
ollythestallion 2022-08-17 13:39:24
So where do I start now

here is a basic sample of php mailer

php
<?php
//Import PHPMailer classes into the global namespace
//These must be at the top of your script, not inside a function
use PHPMailerPHPMailerPHPMailer;
use PHPMailerPHPMailerSMTP;
use PHPMailerPHPMailerException;

//Load Composer’s autoloader
require ‘vendor/autoload.php’;

//Create an instance; passing `true` enables exceptions
$mail = new PHPMailer(true);

try {
//Server settings
$mail->SMTPDebug = SMTP::DEBUG_SERVER; //Enable verbose debug output
$mail->isSMTP(); //Send using SMTP
$mail->Host = ‘smtp.example.com’; //Set the SMTP server to send through
$mail->SMTPAuth = true; //Enable SMTP authentication
$mail->Username = ‘user@example.com’; //SMTP username
$mail->Password = ‘secret’; //SMTP password
$mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; //Enable implicit TLS encryption
$mail->Port = 465; //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`

//Recipients
$mail->setFrom(‘from@example.com’, ‘Mailer’);
$mail->addAddress(‘joe@example.net’, ‘Joe User’); //Add a recipient
$mail->addAddress(‘ellen@example.com’); //Name is optional
$mail->addReplyTo(‘info@example.com’, ‘Information’);
$mail->addCC(‘cc@example.com’);
$mail->addBCC(‘bcc@example.com’);

//Attachments
$mail->addAttachment(‘/var/tmp/file.tar.gz’); //Add attachments
$mail->addAttachment(‘/tmp/image.jpg’, ‘new.jpg’); //Optional name

//Content
$mail->isHTML(true); //Set email format to HTML
$mail->Subject = ‘Here is the subject’;
$mail->Body = ‘This is the HTML message body <b>in bold!</b>’;
$mail->AltBody = ‘This is the body in plain text for non-HTML mail clients’;

$mail->send();
echo ‘Message has been sent’;
} catch (Exception $e) {
echo “Message could not be sent. Mailer Error: {$mail->ErrorInfo}”;
}

Fox 2022-08-17 13:41:00
u can use composer to install it
Fox 2022-08-17 13:41:02
composer require phpmailer/phpmailer
ollythestallion 2022-08-17 13:42:12
On a server
ollythestallion 2022-08-17 13:42:16
How do I install
ollythestallion 2022-08-17 13:42:42
luv_php-56252.jpg

ollythestallion 2022-08-17 13:42:47
This is the HTML
Fox 2022-08-17 13:43:12
ollythestallion 2022-08-17 13:42:16
How do I install

do you know how to use terminal? if not, you can download and extract the zip from https://github.com/PHPMailer/PHPMailer/archive/master.zip

ollythestallion 2022-08-17 13:43:42
Yes I can use terminal
|