It is much easier to send email from PHP than from Perl. Read this tutorial if you have any doubts.
It is much easier to send email from PHP than from Perl. Read this tutorial if you have any doubts.bool mail(string to, string subject, string message, string
additional_headers). mail("[email protected], [email protected], [email protected]",
"Test subject",
"Test\n message body\n\n End line"); $email="[email protected], [email protected]";
$subject="Test subject";
$letter="Test\n message body\n\n End line";
mail($email, $subject, $letter);
So owner of the e-mail address admin@yourdomain.com receives
"Test msubject" letter. You can control Reply-To, From message fields and other special
fields passing the info into additional parameters string in the last mail()
function argument. mail("[email protected]",
"Test letter 2",
"Test\n body 2\n\n End line",
"From: webmaster@$SERVER_NAME\nReply-To: webmaster@$SERVER_NAME\nX-Mailer:
PHP/" . phpversion());
Additional mail message fields separated by new line symbol (\n).
mail($email, "Subscription",
"$letter",
"From: [email protected]\nReply-To: [email protected]\nX-Mailer: PHP/" .
phpversion());