22, November 2008

No validation email to Hotmail addresses - 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: No validation email to Hotmail addresses
« previous next »
Pages: [1] Print

Author Topic: No validation email to Hotmail addresses  (Read 2607 times)
My name is Bong, James Bong
*
Posts: 11
70 credits
Members referred : 0


« on: Sep 24, 2006, 03:15:07 PM »

Hi olaf, I mentioned in another thread about not being able to receive validation emails if I enter an Hotmail address into the register form.

I have checked all folders on my Hotmail account and it simply doesn't get there (not even in the Junk Folder).

I know you said that you'd be looking into it but you also asked me to make a new thread for this...

I'm using these scripts...

http://www.adkm.34sp.com/register.txt Visit through proxy
http://www.adkm.34sp.com/login.txt Visit through proxy

thanks
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Sep 24, 2006, 03:44:48 PM »

Hi,
The problem is not the class, its a header thing with you server...

try to change the mail function like described in the php manual:
Code:
<?php
mail
("nobody@example.com""the subject"$message,
    
"From: webmaster@{$_SERVER['SERVER_NAME']}""-fwebmaster@{$_SERVER['SERVER_NAME']}");
?>


Last blog : Just a better Internet portal provided by Google
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Sep 24, 2006, 03:46:49 PM »


I know you said that you'd be looking into it but you also asked me to make a new thread for this...



this is what you have posted in the other thread:

Login and/or password did not match to the database. The auto login doesn't work

what is this about?


Last blog : Just a better Internet portal provided by Google
My name is Bong, James Bong
*
Posts: 11
70 credits
Members referred : 0


« Reply #3 on: Sep 24, 2006, 03:48:06 PM »

It was about the automatic account activation - someone told me to set the activation thing to "true", but the account did not automatically activate.
« Last Edit: Sep 24, 2006, 03:56:00 PM by Subyne Simean »
My name is Bong, James Bong
*
Posts: 11
70 credits
Members referred : 0


« Reply #4 on: Sep 24, 2006, 03:54:08 PM »

I'm an idiot newbie so can I clarify something? I replace this:

Code:
function send_mail($mail_address, $msg = 29, $subj = 28, $send_admin = false) {
$header = "From: \"".$this->webmaster_name."\" <".$this->webmaster_mail.">\n";
if ($send_admin) $header .= "Bcc: ".ADMIN_MAIL."\n";
$header .= "MIME-Version: 1.0\n";
$header .= "Mailer: Olaf's mail script version 1.11\n";
$header .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n";
$header .= "Content-Transfer-Encoding: 7bit\n";
$subject = $this->messages($subj);
$body = $this->messages($msg);
if (mail($mail_address, $subject, $body, $header)) {
return true;
} else {
return false;
}
}

with this?

Code:
mail("nobody@example.com", "the subject", $message,
    "From: webmaster@{$_SERVER['SERVER_NAME']}", "-fwebmaster@{$_SERVER['SERVER_NAME']}");
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Sep 24, 2006, 04:02:04 PM »

add this value:


if (mail($mail_address, $subject, $body, $header, "-fwebmaster@{$_SERVER['SERVER_NAME']}")) {

(the bold part)


Last blog : Just a better Internet portal provided by Google
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Sep 24, 2006, 04:02:58 PM »

By the way this class is not written for newbies Wink


Last blog : Just a better Internet portal provided by Google
My name is Bong, James Bong
*
Posts: 11
70 credits
Members referred : 0


« Reply #7 on: Sep 24, 2006, 04:13:35 PM »

Hi, I made the change and when I press Submit on the register page, it gives me this error:

Warning: mail(): SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in /usr/local/psa/home/vhosts/adkm.34sp.com/httpdocs/classes/access_user/access_user_class.php on line 470
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Sep 24, 2006, 04:36:32 PM »

Hi, I made the change and when I press Submit on the register page, it gives me this error:

Warning: mail(): SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in /usr/local/psa/home/vhosts/adkm.34sp.com/httpdocs/classes/access_user/access_user_class.php on line 470

from the manual:
This fifth parameter was added in PHP 4.0.5. Since PHP 4.2.3 this parameter is disabled in safe_mode and the mail() function will expose a warning message and return FALSE if you're trying to use it.

then you have a problem (or you have to wait until the version using external mail programs is ready)


Last blog : Just a better Internet portal provided by Google
My name is Bong, James Bong
*
Posts: 11
70 credits
Members referred : 0


« Reply #9 on: Sep 24, 2006, 04:45:59 PM »

thanks mate, i'll keep an eye out. you're great!
What a dork
*
Posts: 17
110 credits
Members referred : 0


« Reply #10 on: Nov 23, 2006, 05:48:09 PM »

Hi Dude, gmail.com doesn't receive mails send by the Access User Class. Other addresses work fine. This is the code:
function send_mail($mail_address, $msg = 29, $subj = 28, $send_admin = false) {
   $header = "From: \"".$this->webmaster_name."\" <".$this->webmaster_mail.">\r\n";
      if ($send_admin) $header .= "Bcc: ".ADMIN_MAIL."\r\n";
   $header .= "MIME-Version: 1.0\r\n";
   $header .= "Mailer: Olaf's mail script version 1.11\r\n";
   $header .= "Content-Type: text/plain; charset=\"iso-8859-1\"\r\n";
   $header .= "Content-Transfer-Encoding: 7bit\r\n";
   $subject = $this->messages($subj);
   $body = $this->messages($msg);
   if (mail($mail_address, $subject, $body, $header)) {
      return true;
   } else {
      return false;
   }
}


How can I test this? Do you have any experience with it? If I send a mail from Outlook with the same sender address gmail receives it fine. (?)
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #11 on: Nov 23, 2006, 06:22:39 PM »

I think its time to publish the connector to use AU with my email class...I need the weekend I think...


Last blog : Just a better Internet portal provided by Google
What a dork
*
Posts: 17
110 credits
Members referred : 0


« Reply #12 on: Dec 09, 2006, 04:30:10 AM »

Olaf, just want to let you know that I solved the problem by taking out this line:
$header .= "Mailer: Olaf's mail script version 1.11\r\n";

And replaced it with my own line. I made something up. Not used my own or anyone else's name of course.

I gather that some mail servers (gmail.com in my case) saw that line as an sign of abuse. Maybe somebody used your AU class in a bad way? In any case my problem is solved now. Later dude.
« Last Edit: Dec 09, 2006, 04:32:53 AM by scooter »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #13 on: Dec 09, 2006, 09:57:56 AM »

Olaf, just want to let you know that I solved the problem by taking out this line:
$header .= "Mailer: Olaf's mail script version 1.11\r\n";

And replaced it with my own line. I made something up. Not used my own or anyone else's name of course.

I gather that some mail servers (gmail.com in my case) saw that line as an sign of abuse. Maybe somebody used your AU class in a bad way? In any case my problem is solved now. Later dude.
strange this mail snippet is based on an older mailscript from my website, but thank you for sharing that.

btw. my newer mail scripts doesn't have this link Wink (and they are working good)


Last blog : Just a better Internet portal provided by Google
I love Pokemon
*
Posts: 14
96 credits
Members referred : 0


« Reply #14 on: Jan 01, 2007, 10:08:01 PM »

Olaf, just want to let you know that I solved the problem by taking out this line:
$header .= "Mailer: Olaf's mail script version 1.11\r\n";

And replaced it with my own line. I made something up. Not used my own or anyone else's name of course.

I gather that some mail servers (gmail.com in my case) saw that line as an sign of abuse. Maybe somebody used your AU class in a bad way? In any case my problem is solved now. Later dude.

can you give me a example of what you woul dreplace that with?





Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #15 on: Jan 01, 2007, 11:12:12 PM »

Olaf, just want to let you know that I solved the problem by taking out this line:
$header .= "Mailer: Olaf's mail script version 1.11\r\n";

And replaced it with my own line. I made something up. Not used my own or anyone else's name of course.

I gather that some mail servers (gmail.com in my case) saw that line as an sign of abuse. Maybe somebody used your AU class in a bad way? In any case my problem is solved now. Later dude.

can you give me a example of what you woul dreplace that with?







do you have any php knowledge?


Last blog : Just a better Internet portal provided by Google
I love Pokemon
*
Posts: 14
96 credits
Members referred : 0


« Reply #16 on: Jan 02, 2007, 02:53:39 AM »

Quote

do you have any php knowledge?
Quote

Working On it Sad
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #17 on: Jan 02, 2007, 09:19:01 AM »

Quote

do you have any php knowledge?
Quote

Working On it Sad

using classes in PHP needs some fundamental knowledge of PHP, sorry this class is not really a beginners script...


Last blog : Just a better Internet portal provided by Google
I love Pokemon
*
Posts: 14
96 credits
Members referred : 0


« Reply #18 on: Jan 03, 2007, 01:02:47 AM »

I have been learning php and I have very well learned the python programing language from only using examples and using premade scripts I learn very fast if I use examples like your class.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4232
Tags : php databases php safemode snippets 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: No validation email to Hotmail addresses
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Nov 22, 2008, 11:55:20 AM





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!


Forum Statistics
Total Posts: 37.736
Total Topics: 7.650
Total Members: 4.396
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: thomas09

32 Guests, 5 Users online :

12 users online today:



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.