Jump to content

PHPMailer Messages marked as spam


sgtpeppers

Recommended Posts

I'm trying to send E-mails through PHPMailer. However, the messages are marked as spam by gmail and my student e-mail server.

Here's the header that's being sent:

 

                                                                                                                                                                                                                                                             

Delivered-To: [email protected]

Received: by 10.114.25.9 with SMTP id 9cs728952way;

        Sat, 3 Mar 2007 14:50:58 -0800 (PST)

Received: by 10.90.103.2 with SMTP id a2mr3869721agc.1172962258089;

        Sat, 03 Mar 2007 14:50:58 -0800 (PST)

Return-Path: <[email protected]>

Received: from REMOVED-THIS

        by mx.google.com with ESMTP id 19si4184484agb.2007.03.03.14.50.57;

        Sat, 03 Mar 2007 14:50:58 -0800 (PST)

Received-SPF: neutral (google.com: REMOEVD-THIS is neither permitted nor denied by best guess record for domain of [email protected])

Received: from [12.197.242.2] (helo=sgtpeppers)

by [email protected] with esmtpa (Exim 4.63)

(envelope-from <[email protected]>)

id 1HNd45-0001UY-Fe

for [email protected]; Sat, 03 Mar 2007 17:50:57 -0500

Date: Sat, 3 Mar 2007 16:51:01 -0600

To: [email protected]

From: Web signup form <[email protected]>

Reply-to: Web signup form <[email protected]>

Subject: Welcome to the test!

Message-ID: <3b2c15e7a3b880bef358eb8c1e087335@sgtpeppers>

X-Priority: 3

X-Mailer: PHPMailer [version 1.73]

MIME-Version: 1.0

Content-Type: multipart/alternative;

boundary="b1_3b2c15e7a3b880bef358eb8c1e087335"

X-Antivirus-Scanner: This message has been scanned by ClamAV.

X-AntiAbuse: This header was added to track abuse, please include it with any abuse report

X-AntiAbuse: Primary Hostname - my.server.com

X-AntiAbuse: Original Domain - gmail.com

X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12]

X-AntiAbuse: Sender Address Domain - server.com

X-Source:

X-Source-Args:

X-Source-Dir:

 

I replaced the e-mail and server ip addresses.

 

I'm using site5 as a host, and I have the domain registered through godaddy. I changed the nameservers to point to site5.

 

Here's the code i'm using to setup the header

 

    $mail->IsSMTP();            // set mailer to use SMTP

    $mail->SMTPAuth = true;    // turn on SMTP authentication

    $mail->Host  = $this->smtpHostNames;

    $mail->Username = $this->smtpUserName;

    $mail->Password = $this->smtpPassword;

 

    $mail->From    = $this->from;

    $mail->FromName = $this->fromName;

    $mail->AddAddress($this->to, $this->toName );

    $mail->AddReplyTo($this->from, $this->fromName );

 

    $mail->CharSet  = 'UTF-8';

    $mail->WordWrap = 50;  // set word wrap to 50 characters

 

Any help would be awesome.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/41052-phpmailer-messages-marked-as-spam/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.