|
-
October 17th, 2003, 06:18 PM
#1
PHP mail-function
I'm having a little problem here...
I'm starting up my own e-business, and I'm writing it all myself (in PHP).
To sign up, users must provide their name, email, pick a username and a password.
After they click the "submit"-link, an email is sent to the mailaddress they provided, and that's where the problem is situated...
Here's my code:
Code:
$mailSubject = "Confirm Your membership.";
$mailBody = "Hi $firstname $lastname,\n";
$mailBody .= "\n";
$mailBody .= "Thank you for joining ********\n";
$mailBody .= "\n";
$mailBody .= "Please click the following link to confirm your membership. If clicking does\n";
$mailBody .= "not work, please copy and paste into your browser manually.\n";
$mailBody .= "\n";
$mailBody .= "http://*****.***.**\n";
$mailBody .= "\n";
$mailBody .= "Thank you.\n";
$mailHeaders = "From: [email protected] \n";
$mailHeaders = "ReplyTo: [email protected] \n";
mail($email, $mailSubject, $mailBody, $mailHeaders);
The mail is sent, but the problem seems to be in the headers... the mail seems to be coming from [email protected].... That's pretty cool, but there is no [email protected] (that address doesn't exist). And it should be coming from [email protected].
I'm guessing that there is something wrong with my headers (or the formatting). Priorweb is my host, so I'm guessing (again) that they decline my headers and assign the anonymous-thingy to it... any suggestions?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|