I'm using EXIM as my email agent and when I use SMTP and/or other methods to send mail, it would result in a success !! ...
but when I use PHP's mail function the Mail Delivery System would send a message to nobody@loclhost saying (for example I'm sending an email to myself !) :
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
example@gmail.com
unrouteable mail domain "gmail.com"
------ This is a copy of the message, including all the headers. ------
// here goes all mime headers and the body ...
I've check the php.ini file and the mail function part is as following :
[mail function]^M
; For Win32 only.^M
;SMTP = localhost ;^M
smtp_port = 25^M
^M
; For Win32 only.^M
;sendmail_from = me@localhost.com ;^M
^M
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").^M
sendmail_path = /usr/sbin/sendmail -t -i ;^M
^M
the path to sendmail is ok, I even tried "email" software by Dean Jones to check if the sendmail agent has any problems but the answer was negative ! ...
(The interesting part is that I've configured the nobody's mail to be redirected to my gmail account, and I get Unroutable domain "gmail" form the sendmail in my gmail inbox ... !!)
I appreciate any ideas !! ...
PHP Spec : PHP Version 4.4.4, Powered by Zend
--
With regards ...
Farzad E.
MOD EDIT: I've removed the email address from your post and replaced it with "example@" -- don't want spammers getting the address, y'know!