Web Design Forum  
 
Go Back   Web Design Forum > Web Software > Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 03-18-2009, 12:07 PM   #1
New Member
 
Join Date: Mar 2009
Posts: 7
Default remove verification email from PHP Register and Login Form

I have a register and login page. At the moment you register which sends data to a mysql database and it then sends an email to your account and you have to click to verify it before you can login. However, Hotmail keep blocking these verification emails. I've spoken to hotmail and they can unblock it temporarily but after a day or two it just starts to block them again. Does anyone know how I can stop hotmail blocking the email as spam?
Thanks
alvarez is offline   Reply With Quote


Old 03-18-2009, 05:58 PM   #2
Gold Member
 
conor's Avatar
 
Join Date: Oct 2008
Location: Ireland
Posts: 349
Default

Where is the email being sent from? Is it a personal server? Or is it your computer?

I encountered similar problems when sending from my mail server before.
__________________
Conor
conor is offline   Reply With Quote
Old 03-18-2009, 08:07 PM   #3
New Member
 
Join Date: Mar 2009
Posts: 7
Default

It's from a clients server, hotmail told me that it's a symantec issue but only hotmail is blocking them as spam. How did you resolve the problem? I could try and remove the verification email all together but would rather not.
alvarez is offline   Reply With Quote
Old 03-18-2009, 09:19 PM   #4
Gold Member
 
conor's Avatar
 
Join Date: Oct 2008
Location: Ireland
Posts: 349
Default

Yeah that's tricky...

Are you stating where the email is from?

Often if you say that the email is from test@test.com but you are sending it from a domain called name.com then it will be marked as spam.

Are there a lot of links in the email?
Is it a shared server?
Is the server blacklisted?

If you are using PHP then it helps a hell of a lot to give as many details as possible in the from field to prove that you are not spam such as:

Code:
$from .= "From: $someemail\n";
$from .= "X-Sender: $someemail\n";
$from .= "X-Mailer: PHP\n";
$from .= "X-Priority: 3\n";
$from .= "Return-Path: $someemail\n";
$from .= "Reply-To: $siteemail\n";
mail($to,$subject,$message,$from);
Hope that helps.
__________________
Conor
conor is offline   Reply With Quote
Old 03-18-2009, 10:26 PM   #5
New Member
 
Join Date: Mar 2009
Posts: 7
Default

There's only one link in the email. It is a shared serever and I don't know if it's been blacklisted.

Thanks alot Conor I'll try adding those bits of code tomorrow.
alvarez is offline   Reply With Quote


Old 03-18-2009, 11:31 PM   #6
Super Moderator
 
jnjc's Avatar
 
Join Date: Jun 2008
Posts: 493
Default

unfortunately there is no magic bullet to stop your mail being treated as spam, if there was then all the spammers would use it and it would defeat the purpose...

There are many factors that can cause a mail to be considered as spam, I read somewhere if the email contains red text then it's more likely to be considered spam also. It would be worth while having a cruise around google for some articles on the subject.

If possible have the body of the email as text as opposed to HTML, I have found that can help...

HTH,
JC
jnjc is offline   Reply With Quote
Old 03-19-2009, 11:06 AM   #7
New Member
 
Join Date: Mar 2009
Posts: 7
Default

Thanks for the help guys, I've been tring things out and Hotmail still gets blocked. If it was a lesser used email provider I wouldn't care but as it's Hotmail I think I just have to remove the verification process all together.

At the moment a 0 goes into the MYSQL table and when people clicked the verifiaction link it changed to a 1 and they could then get access. Now I need to change it so when people register the 0 is a 1 so they can instantly login and have no verification email sent.

Can anyone help? my PHP is essentially useless but I'm trying to pick up new bits here and there.
Attached Files
File Type: zip gallery01.php and activate.php.zip (3.9 KB, 17 views)
alvarez is offline   Reply With Quote
Reply

Tags
email, login, mysql, php, register

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:20 AM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.