Glyde Posted July 13, 2007 Share Posted July 13, 2007 I have been trying to figure this out and have used 2 classes already, but still am unable to get this working. I'm trying to send an email verification link out to each user that registers on the site, but Gmail has been putting it in the spam folder. Here's a copy of the message Delivered-To: recipient@gmail.com Received: by 10.115.46.3 with SMTP id y3cs194240waj; Thu, 12 Jul 2007 18:31:58 -0700 (PDT) Received: by 10.141.1.2 with SMTP id d2mr333267rvi.1184290318570; Thu, 12 Jul 2007 18:31:58 -0700 (PDT) Return-Path: <www-data@mysite.com> Received: from mysite.com (myipdata) by mx.google.com with ESMTP id g21si12149645rvb.2007.07.12.18.31.54; Thu, 12 Jul 2007 18:31:58 -0700 (PDT) Received-SPF: neutral (google.com: 67.172.124.252 is neither permitted nor denied by best guess record for domain of www-data@mysite.com) Received: by mysite.com (Postfix, from userid 33) id 5F1044F0548; Thu, 12 Jul 2007 18:31:51 -0700 (PDT) To: "Recipient" <recipient@gmail.com> Subject: Verify Your Email Address X-Mailer: PHP/5.2.1 X-Sender: me@mysite.com Reply-to: Me <me@mysite.com> Errors-To: me@mysite.com From: "Me" <me@mysite.com> Content-Type: multipart/alternative; charset="iso-8859-1"; boundary="=_4b2918cf64b6cf2c458af5e5ce398133" MIME-Version: 1.0 Message-Id: <20070713013151.5F1044F0548@mysite.com> Date: Thu, 12 Jul 2007 18:31:51 -0700 (PDT) --=_4b2918cf64b6cf2c458af5e5ce398133 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Welcome username,=0D=0AYou're almost done creating your account. Th= e last step is to verify that you are in fact the owner of this email addr= ess. While we will never exploit your email address in any way, you may r= eceive announcements from us notifying you of your account status and/or m= ajor company news. To complete the final step, and confirm that this is y= our email address, please copy the following link and paste it into your b= rowser: =0D=0A=0D=0Ahttps://linktomysite.com --=_4b2918cf64b6cf2c458af5e5ce398133 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <b>Welcome username,</b><br />You're almost done creating your accou= nt. The last step is to verify that you are in fact the owner of this ema= il address. While we will never exploit your email address in any way, yo= u may receive announcements from us notifying you of your account status a= nd/or major company news. To complete the final step, and confirm that th= is is your email address, please click <a href="https://linktomysice.com">here</a>.<br /><br />Thank You --=_4b2918cf64b6cf2c458af5e5ce398133-- No matter how many headers I set...nothing works Quote Link to comment Share on other sites More sharing options...
csplrj Posted July 13, 2007 Share Posted July 13, 2007 May Be your site must be marked SPAM by some gmail user and so it has been going to spam folder Just a guess Bye for now CSJakharia Quote Link to comment Share on other sites More sharing options...
Glyde Posted July 13, 2007 Author Share Posted July 13, 2007 This script is the first time I have ever attempted to send an email from this IP address. I have had past servers running here before, but I got a new IP from my ISP since then. Even then, however, this is the first script I have made that sends auto-emails like this, so I doubt that's a problem. I guess it's not too big of a deal right now since this won't be my production server but...judging from the headers in the message I showed, do you guys think this script should successfully send to an inbox when I get a trusted web host. Quote Link to comment Share on other sites More sharing options...
mihail Posted July 13, 2007 Share Posted July 13, 2007 It is difficult to get the headers right. Try this class http://www.phpclasses.org/browse/package/9.html . It is very simple to use and works perfectly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.