|
if ($REQUEST_METHOD==POST) /* Post can be from View Form or Booking Request */
{
$recipientAddress[] = $HTTP_POST_VARS[fromAddress];
$emailHeader = ""; // don't really need anything in here
$host = "localhost"; // don't need to change
$emailSubject = "Virtual-Lancaster Newsletter Test";
$newsletterAddress = "newsletter@virtual-lancaster.net";
$emailContent = "Congratulations! You have received the test email.\n\nPossible reasons that you did not receive a newsletter before:\n\n1. We haven't sent one yet\n\n2. There were email problems that have been solved\n\n3. You are using a company mail account and for some reason your e-mail is being filtered. Talk to your mail administrator about this to see if they will amend their filters\n\n4. You are using a web-based mail service such as AOL, Hotmail or Yahoo and the newsletter is being treated as \"spam\". Check your \"bulk mail\" folder and see if it's in there and follow any online instructions to stop it being filtered.\n\n5. You forgot to subscribe\n\n6. The Really Heavy Greatcoat stole it\n";
$newsletter = new newsletterMailer(
$host,
$debug,
$newsletterAddress,
$recipientAddress,
$emailSubject,
$emailContent,
$emailHeader);
if ($newsletter)
{echo "Okay, the newsletter has been sent out. Cheers\n";}
else
{
?>
A test message has been sent to you.
If it does not arrive within a few hours then it is likely that your
email is being filtered by your ISP or your company.
}
}
?>
Not getting newsletters?
Enter your email address in the box below and click on the
button to see if you can receive emails from newsletter@virtual-lancaster.net.
A test email should be sent to you. If you do not receive it within
a few hours, then it is possible that your company or ISP is filtering
email. Have a polite word with your mail administrator and see if they
will let it through. You can still catch up on the latest news at: http://www.virtual-lancaster.net
Read a copy of the latest newsletter here.
|