web.chesdivmernmra38
New Member
- Messages
- 1
- Reaction score
- 0
- Points
- 1
I'm generating an email from a php script. It gets sent but it gets flagged as spam by the receivers email filter. The script is shown below. I've been making mods to the cPanel Email Authentication but I'm really just guessing on the settings based on the headers I see in the received message. I don't have much experience with this and any suggestions are welcome.
Thanks,
<?php
$to = "web.chesdivmernmra@gmail.com";
$subject = "A Member Survey Has Been Received";
$message = "Hello Chesapeake Division Superintendent,
A member survey form has been made on the website. The survey was authenticated by the applicant. The survey responses from this member are contained in the website database:
Name:\t\t$row[xFIRST_NAME] $row[xLAST_NAME]
City/State:\t$row[xCITY]
County:\t\t$row[xCOUNTY]
Email:\t\t$row[xEMAIL]
Scale:\t\t$row[xSCALE]
Regards,
Chesapeake Division";
$message = wordwrap($message,70);
$headers = 'From: div14mer@web1.vital.x10hosting.com' . "\r\n" . 'Reply-To: div14mer@web1.vital.x10hosting.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
//mail($to, $subject, $message, $headers);
if (mail($to, $subject, $message, $headers)) {echo ("<p class='regularText'>Message sent to: $to</p>");
} else {echo ("<p class='regularText'>Message delivery failed to: $to</p>");}
?>
Thanks,
<?php
$to = "web.chesdivmernmra@gmail.com";
$subject = "A Member Survey Has Been Received";
$message = "Hello Chesapeake Division Superintendent,
A member survey form has been made on the website. The survey was authenticated by the applicant. The survey responses from this member are contained in the website database:
Name:\t\t$row[xFIRST_NAME] $row[xLAST_NAME]
City/State:\t$row[xCITY]
County:\t\t$row[xCOUNTY]
Email:\t\t$row[xEMAIL]
Scale:\t\t$row[xSCALE]
Regards,
Chesapeake Division";
$message = wordwrap($message,70);
$headers = 'From: div14mer@web1.vital.x10hosting.com' . "\r\n" . 'Reply-To: div14mer@web1.vital.x10hosting.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
//mail($to, $subject, $message, $headers);
if (mail($to, $subject, $message, $headers)) {echo ("<p class='regularText'>Message sent to: $to</p>");
} else {echo ("<p class='regularText'>Message delivery failed to: $to</p>");}
?>