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
<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=UTF
8&ll=41.181529,-84.343801&spn=0.006977,0.013819&z=16&iwloc=A> Map
Phone:
(419) 770-1960 (cell)
E-mail:
<mailto:[email protected]> [email protected]
Skype:
manzwebdesigns
Twitter:
<http://www.twitter.com/manzwebdesigns/> @manzwebdesigns
<http://www.linkedin.com/in/manzwebdesigns> Description: LinkedIn
<http://www.manzwebdesigns.com/> Description: ManzWebDesignBlue
<<image001.jpg>>
<<image002.png>>
_______________________________________________ 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.
