Jump to content

Emailing Signup


supanoob

Recommended Posts

Ok so i want to email and activation key and the account details to my members on signup but it doesnt seem to send to hotmail users ><

 

this is the code i have:

 

<?php

mail($email_address, 'Do Not Reply', "Thank You for registering an account at TORD. Below are your login details please keep them safe. 

Email: $email_address 
Password: $password
Activation Key: $randomString

Log in to activate your account using the above key.

Security Question: $secret_question
Security Question Answer: $secret_answer");

?>

 

any help to allow it to send to hotmail users would be greatly apprecited and credit will be given.

Link to comment
https://forums.phpfreaks.com/topic/37350-emailing-signup/
Share on other sites

Are you sure it's not being blocked by their spam filters? This seems to happen with automatically generated emails, and hotmail.

 

Also, it's best to specify a "From:" that doesn't seem generic. Most default configurations will send the email from something like "[email protected]" or "[email protected]", etc. These are common for mass emails, and hotmail most likely blocks emails that are sent from addresses like those.

Link to comment
https://forums.phpfreaks.com/topic/37350-emailing-signup/#findComment-178549
Share on other sites

First of all, you ought to try and modify your email headers to represent a valid email address and from name. Usually, you can do something like this, and it helps some:

<?php
$to  = ''; // recipient's address
$sub = 'Subject'; // email subject
$msg = 'Message'; // email message
$hdr = "From: My Name <[email protected]>\r\nReply-To: [email protected]";

mail($to, $sub, $msg, $hdr);
?>

 

This alone will not always work, but it's a good start.

Link to comment
https://forums.phpfreaks.com/topic/37350-emailing-signup/#findComment-178553
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.