Preventing Spam

Asked by:
penton6 / 16 Points
Time:
2013-02-27 8:30 pm EST
Category:
Outlook
Hits:
1,172
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");
}

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

johnpaulb-whh2
Staff
9,228 Points
2013-02-28 10:11 am EST
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

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help 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.