Preventing Spam

Asked by:
penton6
Time:
2013-02-28 12:30 am
Category:
Outlook
Hits:
157
The simple PHP script (which is using PHPMailer) seen below, when executed, keeps sending the email to my Outlook Junk E-Mail folder. Why do you think that it happening? Thanks.


$mail->IsSMTP();
$mail->Mailer = "smtp";
$mail->Host = "localhost";
$mail->From = "admin@pentongis.com";
$mail->FromName = "Penton Geospatial Technologies LLC";
$mail->AddAddress("$email","$firstname"." "."$lastname");
$mail->SMTPAuth = "true";
$mail->Username = "admin@pentongis.com";
$mail->Password = "*******";
$mail->Port = "465";
$mail->SMTPKeepAlive = true;
$mail->SMTPSecure = "ssl";
$mail->WordWrap = 50;

$body = "Your license request has been received and is currently processing. Please allow 1 business day to complete.\n";

$mail->Subject = "CARET-Toolbox License Request";
$mail->Body = $body;

if(!$mail->Send())
{
error_log("$mail->ErrorInfo");
}
else
{
error_log("mail worked");
}

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

johnpaulb-whh2
2013-02-28 2:11 pm
Hello penton6,

Thank you for your question. I checked the server's mail logs, and the emails are being delivered successfully. After the emails are delivered to the client (Outlook), they are being moved to a Junk folder.

I recommend checking your Outlook settings/filters to see what rules are set up, since it is flagging these as Junk, not our servers.

You may want to also setup SPF records and Domain Keys, which can protect your email from Spam and Spoofing.

If you have any further questions, feel free to post them below, or contact live Tech Support.

They are available 24/7 via:
Email: support@webhostinghub.com
Phone: 877-595-4482 x2
&
Chat (there is a link on the top right).

Thank you,

-John-Paul

You must login before you can post a comment about this answer.

Like this Question?

Support Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.