Email is a spam for gmail and disappear for hotmail + yahoo

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
klang
Forum Newbie
Posts: 10
Joined: Sat May 05, 2007 1:23 pm

Email is a spam for gmail and disappear for hotmail + yahoo

Post by klang »

Hi...

I've tested Swiftmailer to send email to gmail, hotmail, and yahoo accounts. Gmail recieved the email but it was in the Spam folder. Hotmail and Yahoo did not recieved the email at all.

Swiftmailer did actually send it as I checked by "$sent = $swift->send($message, $to, $from);" There is no email left in the server spool. So, I assumed that my mail is considered a Junk mail.

I've read the spam doc on http://www.swiftmailer.org/wikidocs/v3/tips/spam and I believed my problem was in the "Identify Yourself" section on this article. My email header (checked from gmail) contained the word "localhost" as below
Delivered-To: isara@jkcompany.biz
Received: by 10.35.35.15 with SMTP id n15cs302588pyj;
Thu, 5 Jul 2007 06:42:28 -0700 (PDT)
Received: by 10.141.159.13 with SMTP id l13mr2349516rvo.1183642948167;
Thu, 05 Jul 2007 06:42:28 -0700 (PDT)
Return-Path: <sadmin@coolswop.com>
Received: from thaieshop.net ([202.151.177.174])
by mx.google.com with ESMTP id b21si3985666rvf.2007.07.05.06.42.25;
Thu, 05 Jul 2007 06:42:28 -0700 (PDT)
Received-SPF: pass (google.com: domain of sadmin@coolswop.com designates 202.151.177.174 as permitted sender)
Received: by thaieshop.net (Postfix, from userid 48)
id 8692A7198CA2; Thu, 5 Jul 2007 20:43:00 +0700 (ICT)
Received: from coolswop.com (localhost [127.0.0.1])
by thaieshop.net (Postfix) with ESMTP id 473967198C54
for <isara@jkcompany.biz>; Thu, 5 Jul 2007 20:43:00 +0700 (ICT)
To: Klang - <isara@jkcompany.biz>
From: CoolSwop <sadmin@coolswop.com>
Reply-To: CoolSwop <sadmin@coolswop.com>
Subject: Confirm your e-mail address for CoolSwop
Date: Thu, 05 Jul 2007 20:43:00 +0700
X-Mailer: Swift 3.1.5
MIME-Version: 1.0
I just have no idea how to correct this problem. I've edited the /etc/hosts as recommended in the article, but nothing changed.

I've used sendmail connection as "$swift = new Swift(new Swift_Connection_Sendmail(SENDMAIL_PATH));". Some of my friend suspected that the sendmail process was the one that put the localhost header but I have no idea.

Can someone please help me?

Thanks,
- Klang
klang
Forum Newbie
Posts: 10
Joined: Sat May 05, 2007 1:23 pm

Post by klang »

Here is the full header
Delivered-To: isara@jkcompany.biz
Received: by 10.35.35.15 with SMTP id n15cs302588pyj;
Thu, 5 Jul 2007 06:42:28 -0700 (PDT)
Received: by 10.141.159.13 with SMTP id l13mr2349516rvo.1183642948167;
Thu, 05 Jul 2007 06:42:28 -0700 (PDT)
Return-Path: <sadmin@coolswop.com>
Received: from thaieshop.net ([202.151.177.174])
by mx.google.com with ESMTP id b21si3985666rvf.2007.07.05.06.42.25;
Thu, 05 Jul 2007 06:42:28 -0700 (PDT)
Received-SPF: pass (google.com: domain of sadmin@coolswop.com designates 202.151.177.174 as permitted sender)
Received: by thaieshop.net (Postfix, from userid 48)
id 8692A7198CA2; Thu, 5 Jul 2007 20:43:00 +0700 (ICT)
Received: from coolswop.com (localhost [127.0.0.1])
by thaieshop.net (Postfix) with ESMTP id 473967198C54
for <isara@jkcompany.biz>; Thu, 5 Jul 2007 20:43:00 +0700 (ICT)
To: Klang - <isara@jkcompany.biz>
From: CoolSwop <sadmin@coolswop.com>
Reply-To: CoolSwop <sadmin@coolswop.com>
Subject: Confirm your e-mail address for CoolSwop
Date: Thu, 05 Jul 2007 20:43:00 +0700
X-Mailer: Swift 3.1.5
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="_=_swift-544620745468cf564484a16.13065867_=_"
Content-Transfer-Encoding: 7bit
Message-ID: <2147483647.2075.198133351.swift@coolswop.com>

This is a message in multipart MIME format. Your mail client should not
be displaying this. Consider upgrading your mail client to view this
message correctly.
--_=_swift-544620745468cf564484a16.13065867_=_
Content-Type: text/plain; charset=TIS-620
Content-Transfer-Encoding: 8bit


Hello, Klang -.

Thank you for signing up for CoolSwop.

To confirm this e-mail address

http://www.coolswop.com/register/confir ... 22a88.swop

If you didn't sign up for the account with this e-mail address and want to cancel the account

http://www.coolswop.com/register/cancel ... 22a88.swop

Thank you,
CoolSwop Customer Support

NOTE:
Please do not reply to this message, which was sent from an unmonitored e-mail address. Mail sent to this address cannot be answered.

--_=_swift-544620745468cf564484a16.13065867_=_
Content-Type: text/html; charset=TIS-620
Content-Transfer-Encoding: 8bit


Hello, Klang -.<br />
<br />
Thank you for signing up for CoolSwop.<br />
<br />
To confirm this e-mail address<br />
<br />
<a href="http://www.coolswop.com/register/confir ... wop</a><br />
<br />
If you didn't sign up for the account with this e-mail address and want to cancel the account<br />
<br />
<a href="http://www.coolswop.com/register/cancel ... wop</a><br />
<br />
Thank you,<br />
CoolSwop Customer Support<br />
<br />
NOTE:<br />
Please do not reply to this message, which was sent from an unmonitored e-mail address. Mail sent to this address cannot be answered.<br />

--_=_swift-544620745468cf564484a16.13065867_=_--
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

I'm curious why you're sending a Thai character set when you're not actually using Thai characters? Besides that, I can't see anything obvious that should be causing the problem, unless the spam checkers don't like those URLs in your email? Out of curiosity, if you remove the URLs completely does it send fine?
klang
Forum Newbie
Posts: 10
Joined: Sat May 05, 2007 1:23 pm

Post by klang »

Thanks "d11wtq" for your comment.

I did removed those url and it works for gmail only. Yahoo and Hotmail still think it's a junk mail.

Anyway, I have a new theory. For this domain (coolswop.com), I've used the google for your domain as the mail service which mx records point to google servers. And I think the problem was when sending email from Swift, it coming from my mail server (thaieshop.net) which is not register in the mx records. I'm playing with the DNS setting right now, but it will take a while for DNS to be updated. I'll let you guys know the results later.

In the mean time, if anyone got another ideas, please let me know.

Thanks so much,
- Klang
Post Reply