15, October 2008

Why Doesn't Access_user work with Hotmail ? - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Why Doesn't Access_user work with Hotmail ?
« previous next »
Pages: [1] Print

Author Topic: Why Doesn't Access_user work with Hotmail ?  (Read 1153 times)
Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« on: Oct 08, 2006, 07:16:40 PM »

I've just added the access_user class to a website I'm looking after, and I have found the problem that hotmail users can't use this. The activation email comes to the admin email address. Other user email accounts work fine.
I saw on a previous thread the mod to the send_mail function adding the fifth parameter to mail(). This stops me wrongly getting the user activation email but then no email seems to be sent at all now with the mod.

What is it about hotmail accounts that cause this problem ?
Regards
Tony
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6357
38966 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Oct 08, 2006, 08:06:50 PM »

I've just added the access_user class to a website I'm looking after, and I have found the problem that hotmail users can't use this. The activation email comes to the admin email address. Other user email accounts work fine.
I saw on a previous thread the mod to the send_mail function adding the fifth parameter to mail(). This stops me wrongly getting the user activation email but then no email seems to be sent at all now with the mod.

What is it about hotmail accounts that cause this problem ?
Regards
Tony

check this thread:
http://www.webdigity.com/index.php/topic,4232.0.No+validation+email+to+Hotmail+addresses.html Visit through proxy


Last blog : Upload images for usage in TinyMCE
Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« Reply #2 on: Oct 08, 2006, 09:18:26 PM »

Hi Olaf,
I did see that thread. But what I wanted to know is what is the cause of this problem ? Why does "access_user" care about which email address the validation email is sent to ? What is different sabout sending an email to someone@domain.com and someone@hotmail.com ?
Regards
Tony
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6357
38966 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Oct 08, 2006, 11:19:38 PM »

It's about missing (or different) mail headers... I think that hotmail takes his spam protection a little bit to hard (or to easy, just like with windows)


Last blog : Upload images for usage in TinyMCE
Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« Reply #4 on: Oct 09, 2006, 12:39:37 PM »

 Sad
I guess I will have to wait for your external mailer. It's shame as only one of my users so far has an email address that worked correctly. Hotmail, ntlworld.com and wanadoo.com seem to not work. Freeserve strangely does, and my own domains work ok.
Thanks for your help.
Tony
Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« Reply #5 on: Oct 09, 2006, 02:36:11 PM »

Hi Olaf,
I have been trying to find out why the email are bring rejected using an smtp server that provides good logging capabilities. This reports that the smtp server has replied with an error "501 5.5.4 Syntax Error" which indicates a misformed FROM header. I checked the header sent by access_user and it is
"MAIL FROM:< "Webmaster" <webmaster@woodleyzebrasfc.com>>"
Might this explain the problem ?
Regards
Tony
Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« Reply #6 on: Oct 09, 2006, 06:32:00 PM »

Hi Olaf,
I modified the send_mail function slightly so the FROM line reads
$header = "From:".$this->webmaster_mail."\r\n";
and now I can send email to hotmail users ok. This make the "from" header read
From:webmastername@mydomain.com

Regards
Tony
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6357
38966 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Oct 09, 2006, 11:37:26 PM »

Hi Olaf,
I modified the send_mail function slightly so the FROM line reads
$header = "From:".$this->webmaster_mail."\r\n";
and now I can send email to hotmail users ok. This make the "from" header read
From:webmastername@mydomain.com

Regards
Tony
Look most of the users doesn't have a problem, it's just liker you server send the mail.

try to replace the line ends "\r\n" with only "\n" that might help

(I'm using this class inside application with more 1000 users with all types of e-mail addresses)


Last blog : Upload images for usage in TinyMCE
Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« Reply #8 on: Oct 10, 2006, 11:36:42 AM »

Hi Olaf,
OK. I guess most of your users are not using public email accounts. There are other developers who have reported the problem too on this forum, and for me it is a big issue as all but one of the users who have signed up were using one of these public email accounts which did not accept the emails.

I did have the problem on a windows machine (my development machine) and on my hosting service using linux.

I tried changing /r/n to /n but it did not work. RFC-821 clearly states <crlf> should be used.

I tried sending the emails to several smtp servers on my local machine and only about 50% were happy with the FROM: header, so I believe there is a problem here.

Anyway I've fixed it by making the change I described, so I'm happy now.
BTW I made a minor mistake on the code quoted in my previous post it should be
$header = "From: ".$this->webmaster_mail."\r\n";

Now I can get on with using the class itself. Once this problem is fixed the class validation process works very nicely.
Thanks
Tony
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6357
38966 credits
Members referred : 374


It's time to use PHP5!


« Reply #9 on: Oct 10, 2006, 12:37:27 PM »

Quote
Now I can get on with using the class itself. Once this problem is fixed the class validation process works very nicely.
what is this about?

The class is used most of the time on linux servers, maybe this will solve the problem too...(check the number of downloads, I'm sure that 90% using the class not on a windows machine)

But anyway there are enough of users having lots of problems with sending mails...


Last blog : Upload images for usage in TinyMCE
Chicken-run Manager
*
Posts: 9
62 credits
Members referred : 0


« Reply #10 on: Oct 10, 2006, 01:01:09 PM »

Quote
Now I can get on with using the class itself. Once this problem is fixed the class validation process works very nicely.
what is this about?
I was just pointing out that now the email validation process works properly, and the users can register with the website I can get on with actually using this class to protect pages etc.
Quote
The class is used most of the time on linux servers, maybe this will solve the problem too...(check the number of downloads, I'm sure that 90% using the class not on a windows machine)
I only use a windows machine for development. The hotmail/ntlworld/gmail/wanadoo mails go wrong on my website hosting company linux machine too.
Thanks for your efforts
Tony
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6357
38966 credits
Members referred : 374


It's time to use PHP5!


« Reply #11 on: Oct 10, 2006, 01:11:34 PM »

Tony,

I'm testing on windows too, but never had problems with gmail shoot a cc to olaf at webdigity dot com


Last blog : Upload images for usage in TinyMCE
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4367
Tags : webdigity spam linux email Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Why Doesn't Access_user work with Hotmail ?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Oct 15, 2008, 11:35:34 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!





Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.