I have a PHP Login Script that I have gotten to work except for one part, it does not send the activation email when I include a URL in the message. Here is the piece of code I have. Could someone please tell me what is wrong. Thanks mail ( $email , 'Registration Confirmation' , 'Thanks for registering. Your confirmation code is attached below http://www.college9.net/activate.php?code=' , $code ); PHP:
There is a problem with the last part of your code. I believe that , $code Code (markup): should be . $code Code (markup):
I assume $code doesn't contain headers information ? mail($email, 'Registration Confirmation', 'Thanks for registering. Your confirmation code is attached below http://www.college9.net/activate.php?code=' . $code); PHP:
Try this: <?php $subject = "Subject here"; $message = "Hello, Message can be here"; $headers = "From: support@example.com" . "\r\n" . "Reply-To: support@example.com" . "\r\n" . "X-Mailer: PHP/" . phpversion(); mail($email, $subject, $message, $headers); ?> PHP: Hope i helped.