Hi all,
I have a php script that sends a mail using sendmail on linux to my smtp account but require it to include a form in the e-mail that posts to another page when I click submit. Is this even possible and if so Id appreciate some help ! My current code:
include("Mail.php");
$recipients = "joebloggs@blank.com";
$headers["From"] = "bandy";
$headers["To"] = "greg";
$headers["Subject"] = "Pub Reference";
$body = "Greg, here is another pub reference\n Name:
I WANT THE FORM TO APPEAR IN THE BODY OF THE MAIL MESSAGE
$params["host"] = "localhost";
$params["port"] = "25";
$mail_object =& Mail::factory("smtp", $params);
if ($mail_object->send($recipients, $headers, $body))
{
echo("<p>Message sent!</p>");
}
else
{
echo("<p>Message delivery failed...</p>");
}
Thanks in advance
Greg