I just had the php mail() battle recently, but the worst part was that it
was on a Windows Box, but it ended up being a reverse DNS issue.

Do you have a Non-Delivery Report or any logs?

On Thu, May 12, 2011 at 6:00 PM, MWD - Admin <[email protected]>wrote:

> Hey everyone,
>
>
>
> I am tired of beating my brains on this one…
>
>
>
> I have a script that sends email using the PHP mail() function.  It doesn’t
> send and it doesn’t fail.
>
>
>
> [code]
>
>
>
> …
>
>   $message = " $todayis [EST]\n
>
> Attention: $attn\n
>
> Message: $notes\n
>
> From: $visitorfull ($visitormail)\n
>
> Phone: $visitorphone\n
>
> Additional Info : IP = $ip\n
>
> Browser Info: $httpagent\n
>
> Referral : $httpref\n
>
> Referring page : $from_page\n
>
>       ";
>
>
>
>   $from = "From: $visitorfull <$visitormail>\n";
>
>   $extra = "-f {$admin_email}";
>
>
>
>   $sent = mail($admin_email, $subject, $message, $from, $extra);
>
>
>
>   if($sent) {
>
>     echo "Mail sent successfully!";
>
>   }
>
> …
>
>
>
> [/code]
>
>
>
> It seems that my server is using /etc/alternatives/mta instead of sendmail
> for mail delivery.
>
>
>
> [snip]
>
>
>
> [root@server etc]# cat php.ini | grep sendmail_path
>
> sendmail_path = "/usr/sbin/sendmail -t -i"
>
>
>
> [root@server etc]# ls -als /usr/sbin/sendmail*
>
>   0 lrwxrwxrwx 1 root root      21 Mar 16 10:36 /usr/sbin/sendmail ->
> /etc/alternatives/mta
>
> 204 -rwxr-xr-x 1 root root  201784 Apr 13 18:55 /usr/sbin/sendmail.postfix
>
> 764 -rwxr-sr-x 1 root smmsp 775064 Mar 31  2010 /usr/sbin/sendmail.sendmail
>
>
>
> [/snip]
>
>
>
> I added the “$extra …” snippet from a post found on php.net in the mail
> function page.
>
>
>
> Please, does anyone have any idea how to make this work?
>
>
>
> Thanks in advance,
>
> Bud Manz
>
>
>
> *Contact Info*
>
> Address:
>
> 24885 Road 178
> Defiance, Ohio  43512-9331
> Map<http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=24885+Road+178,+Defiance,+OH+43512&sll=37.509726,-95.712891&sspn=29.970263,56.601563&ie=UTF8&ll=41.181529,-84.343801&spn=0.006977,0.013819&z=16&iwloc=A>
>
> Phone:
>
> (419) 770-1960 (cell)
>
> E-mail:
>
> [email protected]
>
> Skype:
>
> manzwebdesigns
>
> Twitter:
>
> @manzwebdesigns <http://www.twitter.com/manzwebdesigns/>
>
> [image: Description: LinkedIn] <http://www.linkedin.com/in/manzwebdesigns>
>
> [image: Description: ManzWebDesignBlue] <http://www.manzwebdesigns.com/>
>
>
>
>
>
> _______________________________________________
> Fwlug mailing list
> [email protected]
> http://fortwaynelug.org/mailman/listinfo/fwlug_fortwaynelug.org
>
> This is a public list and all posts are archived publicly. Please keep this
> in mind before posting.
>
>
_______________________________________________
Fwlug mailing list
[email protected]
http://fortwaynelug.org/mailman/listinfo/fwlug_fortwaynelug.org

This is a public list and all posts are archived publicly. Please keep this in 
mind before posting.

Reply via email to