[TriLUG] sending mail with PHP
james at layyze.com
Thu Sep 2 15:10:35 EDT 2004
It seems almost like a sendmail config issue. Can you send mail from a
regular client through your sendmail?
Another option that you can try instead of an os call from PHP to send
mail is using the built-in PHP mail function:
The built-in function has worked rock-solid for me.
> Isn't Apache 2.X supposed to be more secure and all that fun?
> I'm trying to write a PHP script to send an e-mail containing data
> filled into a form on a web page. Simple stuff. Only problem is, the
> mail doesn't get delivered. I think I know the basis of the problem,
> but I'm not at all sure how to fix it. I think it's related to the mail
> command in a shell not working correctly (i.e. mail sent using said
> command does not get
> What I think the problem is, is that sendmail (or mail) isn't correctly
> qualifying the From: in the message. It's getting qualified as
> sender at localhost.localdomain instead of sender at strutmasters.com , and
> that appears to be causing it to be bounced because of invalid domain
> name. I don't often send mail from the command line (although I
> sometimes do), but the mail function of the PHP script is critical, so a
> resolution is a fairly high priority for me.
> Any suggestions?
> Thanks a bunch,
> TriLUG mailing list :
> http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ
> : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
More information about the TriLUG