websiteI want my website to automatically generate an email to be sent to a customer when they click the submit button.
I have added the following php:
$subject = "Thank You";
$message = "Thank you .........";
$from = "info@mywebsite.com";
$headers = "From:" . $from;
mail($email, $subject, $message, $headers);
The variable $email
was defined earlier. Also I have edited my php.ini
to include the following:
SMTP = smtp.mywebsite.com
smtp_port = 25
username = info@mywebsite.com
password = password
sendmail_from = info@mywebsites.com
Clearly I have not done enough. What more do I need to do?