Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
ronnieplant
Joined: Feb 09, 2005
# Posts: 7
|
Posted: 02/10/2005 07:50 am
To anybody still sane, even you Sineod.
I'm now trying to set up a password encrypter which'll E-mail you the activation password. I've done the login form so that when I press submit the password will get sent to the user's email address. The thing is - all that happens is this:
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in c:program filesapache groupApachehtdocsregister.php on line 106
Your membership information has been mailed to your email address! Please check it and follow the directions!
I have played around with my php.ini to turn on sendmail etc and I've entered my correct smtp settings, oh and removed the ; aswell.
Plus it never sends anything to the email adresses I put in.
I can only think there might be something wrong with the code:
mail($email_address, $subject, $message,
"From: Broadbean Webmaster< postmaster@broadbean.com>n
X-Mailer: PHP/" . phpversion());
echo 'Your membership information has been mailed to your email address!
Please check it and follow the directions!';
I'm sure that's all the relevant code. Somebody please help, I've got a tremendous headache.
Thank you.
|
 |
Sinoed
Joined: Dec 11, 2000
# Posts: 5266
|
Posted: 02/10/2005 09:41 am
Its telling you that you have one of two problems. First, either the mailing function "sendmail_from" is either not set up or not being used properly in php.ini or you haven't set a custom "From:" header.
Probably the easiest thing to check first is the header problem. Open up the file register.php and scroll down to line 106. If your script came with some docs that outlines the settings, find out if you need to change something on this line. If that is working then you can start to suspect the actual code itself.
|
 |
ronnieplant
Joined: Feb 09, 2005
# Posts: 7
|
Posted: 02/11/2005 02:53 am
Thanks Sinoed. You're a great help.
It turns out all I had to do was restart my computer. I think it's probably because I'd have to restart apache etc.
You were right though, all I had to do was fix my php.ini file anyway!
I'm about to post another topic now about sessions and headers. Sessions and headaches more like.
|
 |
Sinoed
Joined: Dec 11, 2000
# Posts: 5266
|
Posted: 02/11/2005 12:11 pm
lol! It gets easier.
|
 |
roders22
Joined: Oct 03, 2005
# Posts: 1
|
Posted: 10/03/2005 11:00 pm
Hi guys, am having the same problem all am doing is testing the software am using namely "argosoft" where you can send email is working. But i also wants an email to be sent from a form but when am testing it with this code
[code]mail('me@him.com', 'Testing', 'If you have received this email, it means that the mail server is not hosted on..... Testing Please reply.','From: you@him.com'); [code]
Can you tell me how to fix this please.
Thanks,
roders22
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you cannot find this message, click here to Re-Send it.
|
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.
|
Switch to Advanced Editor and ...
Create a New Topic
or Reply to this Thread
|
|