Why doesn't mail() work?
Posted 01 August 2006 - 01:38 PM
1) Is this one a shared hosting machine or one host per machine?
2) Is this your own machine or are you buying (or using) site space, if so who is hosting your site?
3) Which web server software is being used?
4) Windows or Unix/Linux?
5) If this is a Unix/Linux box do you have shell access?
6) Is there a web based interface to the administration end of the host, for example cPanel?
7) What version of PHP?
8.) Have you talked to your Tech Support about looking at the mail logs?
The answers are all relevent to trying to get an answer to your problem.
Posted 01 August 2006 - 03:05 PM
Posted 01 August 2006 - 05:51 PM
Here are my answers:
1. I've tried on two hosts, both with many users - does that mean shared?
2. I'm buying site space on one server, but at present trying things out on my college system
3. I don't know
4. My machine is Windows XP
6. Yes, for the site I am buying, but no for my college site
8. Not yet, but I will tomorrow
Posted 01 August 2006 - 07:56 PM
SMTP = mail.mailserver.com
smtp_port = 25
sendmail_from = firstname.lastname@example.org
Posted 01 August 2006 - 10:36 PM
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = email@example.com
It feels wrong to have localhost, but I don't know what to have instead. Could you explain a bit more please?
Posted 01 August 2006 - 11:40 PM
Posted 01 August 2006 - 11:48 PM
SMTP = your mailserver smtp_port = 25 sendmail_from = youruserid@yourmailserver
Posted 04 August 2006 - 03:02 PM
Thanks to all for your help. I did what I should have done to start with, and went to the FAQs on my webserver host, where it says...
Use the PHP mail function and set the mail from using the following line of code - replacing email@mydomain with the correct domain name.
ini_set("sendmail_from", " email@mydomain ");
...and all is now OK.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users