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: my@email.com

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: <sending@email.com>

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 sending@email.com)

Received: from [12.197.242.2] (helo=sgtpeppers)

by my@site.com with esmtpa (Exim 4.63)

(envelope-from <sending@email.com>)

id 1HNd45-0001UY-Fe

for my@email.com; Sat, 03 Mar 2007 17:50:57 -0500

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

To: my@email.com

From: Web signup form <sending@email.com>

Reply-to: Web signup form <sending@email.com>

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.