Forum Moderators: coopster

Message Too Old, No Replies

PHP doesn't send mail

         

windspinner

4:12 am on Nov 7, 2006 (gmt 0)

10+ Year Member



I can't make my PHP send mail even if I set an SMTP for it? What could I have missed. Upon using mail(), it sends a true flag, but I never receive the mail. Why? What have I missed out.

ramoneguru

6:46 am on Nov 7, 2006 (gmt 0)

10+ Year Member



Same thing happened to me when sending to my yahoo/gmail accounts.....try something less restrictive like a school/company email address and see what happens. I imagine some type of spam filter is causing this somewhere along the lines.
--Nick

vincevincevince

7:01 am on Nov 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can you send email from your server using other software?

windspinner

8:48 am on Nov 7, 2006 (gmt 0)

10+ Year Member



Yes. On that same server (an FC4 server) is a ColdFusion App Server. Using ColdFusion, I manage to send mails to my gmail and company email. Using PHP, I cannot. I am beaten. I've reviewed the mail() basics and, well, nothing happened. Funny thing is, this works quite fine in Windows as long as you got the SMTP setup. In case you are wondering, ColdFusion asks for the SMTP unless you got one setup in the configs.

To be sure, I checked the path of my "sendmail." It was on the right path. I am out of ideas. I tried on a RHEL server next--this one doesn't have ColdFusion--it didn't send still. Does your PC need a local DNS for it to be able to queue mails to a local SMTP?

vincevincevince

12:16 pm on Nov 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Perhaps your mail() command is wrong? Try capturing each argument actually sent to a log file. Or posting the code here...