2 posts / 0 new
Last post
#1 Sat, 02/04/2006 - 21:57
KevinHeatwole

PHP mail

I'm having trouble getting mail to be sent from my PHP scripts. They use the mail() PHP function. The function executes, but no mail is ever delivered.

I am testing this on my test server, so I set the "Send outgoing mail via host" to my ISP's smtp host (smtp.east.cox.net) in the Postfix Configuration.

This works if I send mail from ssh using the Linux mail command. Mail is delivered to the internet.

But, with PHP scripts run by Apache, the scripts appear to work but no mail every shows up. I have no idea where it is ending up.

Sun, 02/05/2006 - 00:20
Joe
Joe's picture

Hey Kevin,

Is anything in the /var/log/maillog?

Can you try setting the mail to localhost and see what happens? You should have a functioning mail server after the installation of Virtualmin (assuming you have working name resolution, and a few other simple bits working).

--

Check out the forum guidelines!

Topic locked