NYCPHP Meetup

NYPHP.org

[nycphp-talk] Re: email verification (Gary Mort)

Gary Mort bz-gmort at beezifies.com
Tue Jan 8 17:16:49 EST 2008


Hmm, I just sent a test email to myself and the headers are being 
formatted correctly on that one.

Are you referring to the reply-to on list email being talk at lists.nyphp.org ?

That's set by the nyphp email list when it relays the email.

(Mind you, there are many times when those 2 addresses don't match for 
me, since I use specific email addresses for different lists)




-- rada -- wrote:
> Gary,
>
> I noticed that your From header and your Reply-to headers are 
> different. In my experience, hotmail (and many others) will penalize 
> you and stick your email in the spam folder, or delay delivery. You 
> are not doing anything "illegal" per say but nevertheless, it's a red 
> flag to a lot of free email providers.
>
> Cheers,
> Rada
>
> ----- Original Message ----
> From: "talk-request at lists.nyphp.org" <talk-request at lists.nyphp.org>
> To: talk at lists.nyphp.org
> Sent: Tuesday, January 8, 2008 12:01:46 PM
> Subject: talk Digest, Vol 15, Issue 14
>
> Send talk mailing list submissions to
>     talk at lists.nyphp.org <mailto:talk at lists.nyphp.org>
>
> To subscribe or unsubscribe via the World Wide Web, visit
>     http://lists.nyphp.org/mailman/listinfo/talk
> or, via email, send a message with subject or body 'help' to
>     talk-request at lists.nyphp.org <mailto:talk-request at lists.nyphp.org>
>
> You can reach the person managing the list at
>     talk-owner at lists.nyphp.org <mailto:talk-owner at lists.nyphp.org>
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of talk digest..."
> Today's Topics:
>
>   1. email verification (chad qian)
>   2. Re: email verification (Gary Mort)
>
>
> -----Inline Message Follows-----
>
> Hi,
> When people register,they will have their own username and password.In 
> order to active their account,they have to go to their email acct to 
> click the link to active pages.
> Here is my source code:
> // send a message to the user's email account with a verification link
>         $subject = 'BarterJunk.com account activation for ' . $username;
>    
>         // header of the verification email message
>         $header  = 'From: AccountActivation at barterjunk.com' . "\r\n" .
>                    'Reply-To: webmaster at barterjunk.com' . "\r\n" .
>                    'X-Mailer: PHP/' . _phpversion_ 
> <http://www.php.net/phpversion>();
>    
>         // text of the verification email message
>         $verification_message =
>         "{$username},\n\n" .
>         "Please visit the link below to activate your new 
> BarterJunk.com account.\n\n" .
>         "http://www.barterjunk.com/?activation_code=" . 
> $user_data['activation_hash'] . "\n";
>    
>         // send the message
>         _mail_ <http://www.php.net/mail>( $email, $subject, 
> $verification_message, $header );
>  
> It works,but it takes very long time.After people submit all their 
> information,they will get verification email after 20-30 minutes.I use 
> hotmail to test
>  
> Any better solution?
>  
> Thanks!
>  
> chad
>
>
> Make distant family not so distant with Windows Vista® + Windows 
> Live™. Start now! 
> <http://www.microsoft.com/windows/digitallife/keepintouch.mspx?ocid=TXT_TAGLM_CPC_VideoChat_distantfamily_012008>
> Hi,
> When people register,they will have their own username and password.In 
> order to active their account,they have to go to their email acct to 
> click the link to active pages.
> Here is my source code:
> // send a message to the user's email account with a verification link
>         $subject = 'BarterJunk.com account activation for ' . $username;
>    
>         // header of the verification email message
>         $header  = 'From: AccountActivation at barterjunk.com' . "\r\n" .
>                    'Reply-To: webmaster at barterjunk.com' . "\r\n" .
>                    'X-Mailer: PHP/' . _phpversion_ 
> <http://www.php.net/phpversion>();
>    
>         // text of the verification email message
>         $verification_message =
>         "{$username},\n\n" .
>         "Please visit the link below to activate your new 
> BarterJunk.com account.\n\n" .
>         "http://www.barterjunk.com/?activation_code=" . 
> $user_data['activation_hash'] . "\n";
>    
>         // send the message
>         _mail_ <http://www.php.net/mail>( $email, $subject, 
> $verification_message, $header );
>  
> It works,but it takes very long time.After people submit all their 
> information,they will get verification email after 20-30 minutes.I use 
> hotmail to test
>  
> Any better solution?
>  
> Thanks!
>  
> chad
>
>
> Make distant family not so distant with Windows Vista® + Windows 
> Live™. Start now! 
> <http://www.microsoft.com/windows/digitallife/keepintouch.mspx?ocid=TXT_TAGLM_CPC_VideoChat_distantfamily_012008> 
>
>
>
> -----Inline Message Follows-----
>
> It's not your code, it's the underlying email system.
>
> Most likely, hotmail is greylisting your domain, so it has to wait until
> the retry occurs to deliver it.
>
> chad qian wrote:
> > Hi,
> > When people register,they will have their own username and password.In
> > order to active their account,they have to go to their email acct to
> > click the link to active pages.
> > Here is my source code:
> > // send a message to the user's email account with a verification link
> >        $subject = 'BarterJunk.com account activation for ' . $username;
> >   
> >        // header of the verification email message
> >        $header  = 'From: AccountActivation at barterjunk.com 
> <mailto:AccountActivation at barterjunk.com>' . "\r\n" .
> >                    'Reply-To: webmaster at barterjunk.com 
> <mailto:webmaster at barterjunk.com>' . "\r\n" .
> >                    'X-Mailer: PHP/' . _phpversion_
> > <http://www.php.net/phpversion>();
> >   
> >        // text of the verification email message
> >        $verification_message =
> >        "{$username},\n\n" .
> >        "Please visit the link below to activate your new
> > BarterJunk.com account.\n\n" .
> >        "http://www.barterjunk.com/?activation_code=" .
> > $user_data['activation_hash'] . "\n";
> >   
> >        // send the message
> >        _mail_ <http://www.php.net/mail>( $email, $subject,
> > $verification_message, $header );
> > 
> > It works,but it takes very long time.After people submit all their
> > information,they will get verification email after 20-30 minutes.I use
> > hotmail to test
> > 
> > Any better solution?
> > 
> > Thanks!
> > 
> > chad
> >
> >
> > ------------------------------------------------------------------------
> > Make distant family not so distant with Windows Vista® + Windows
> > Live™. Start now!
> > 
> <http://www.microsoft.com/windows/digitallife/keepintouch.mspx?ocid=TXT_TAGLM_CPC_VideoChat_distantfamily_012008> 
>
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > New York PHP Community Talk Mailing List
> > http://lists.nyphp.org/mailman/listinfo/talk
> >
> > NYPHPCon 2006 Presentations Online
> > http://www.nyphpcon.com
> >
> > Show Your Participation in New York PHP
> > http://www.nyphp.org/show_participation.php
>
>
> It's not your code, it's the underlying email system.
>
> Most likely, hotmail is greylisting your domain, so it has to wait until
> the retry occurs to deliver it.
>
> chad qian wrote:
> > Hi,
> > When people register,they will have their own username and password.In
> > order to active their account,they have to go to their email acct to
> > click the link to active pages.
> > Here is my source code:
> > // send a message to the user's email account with a verification link
> >        $subject = 'BarterJunk.com account activation for ' . $username;
> >   
> >        // header of the verification email message
> >        $header  = 'From: AccountActivation at barterjunk.com 
> <mailto:AccountActivation at barterjunk.com>' . "\r\n" .
> >                    'Reply-To: webmaster at barterjunk.com 
> <mailto:webmaster at barterjunk.com>' . "\r\n" .
> >                    'X-Mailer: PHP/' . _phpversion_
> > <http://www.php.net/phpversion>();
> >   
> >        // text of the verification email message
> >        $verification_message =
> >        "{$username},\n\n" .
> >        "Please visit the link below to activate your new
> > BarterJunk.com account.\n\n" .
> >        "http://www.barterjunk.com/?activation_code=" .
> > $user_data['activation_hash'] . "\n";
> >   
> >        // send the message
> >        _mail_ <http://www.php.net/mail>( $email, $subject,
> > $verification_message, $header );
> > 
> > It works,but it takes very long time.After people submit all their
> > information,they will get verification email after 20-30 minutes.I use
> > hotmail to test
> > 
> > Any better solution?
> > 
> > Thanks!
> > 
> > chad
> >
> >
> > ------------------------------------------------------------------------
> > Make distant family not so distant with Windows Vista® + Windows
> > Live™. Start now!
> > 
> <http://www.microsoft.com/windows/digitallife/keepintouch.mspx?ocid=TXT_TAGLM_CPC_VideoChat_distantfamily_012008> 
>
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > New York PHP Community Talk Mailing List
> > http://lists.nyphp.org/mailman/listinfo/talk
> >
> > NYPHPCon 2006 Presentations Online
> > http://www.nyphpcon.com
> >
> > Show Your Participation in New York PHP
> > http://www.nyphp.org/show_participation.php
>
>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org <mailto:talk at lists.nyphp.org>
> http://lists.nyphp.org/mailman/listinfo/talk
>
>
> ------------------------------------------------------------------------
> Looking for last minute shopping deals? Find them fast with Yahoo! 
> Search. 
> <http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping> 
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php




More information about the talk mailing list