Re: [PHP] Send php Mail not working in MAMP (non pro version)
On 10/17/2012 05:00 PM, Dave wrote: Make sure, if you happen to have install postfix as well, that it has replaced your sendmail. Then, from the cli, as your apache/php user, try sending an email using sendmail. # sendmail -v y...@email.com testing . Thanks a lot Jim for the help... sorry this is getting a bit above me... if you mean use the terminal I have a friend that can help me soon try to change user to apache/php user (not sure how yet) and test this ... Did it work? More then likely your php/apache process does not know where sendmail is or does not have permission to use it. Check in your php.ini file and see what is set as the sendmail_path Mine is set like this: ; For Unix only. You may supply arguments as well (default: sendmail -t -i). ;sendmail_path = As a standard user on my linux box I get this [jlucas@jim ~]$ which sendmail /usr/bin/which: no sendmail in (...) But as root, I get this [root@jim ~]# which sendmail /usr/sbin/sendmail So, make sure your apachephp user can see and execute sendmail -- Jim Lucas Ji Jim, in the mamp php.ini file I had set like the demo to: [mail function] ; For Win32 only. ;SMTP = localhost - these commented out as described ;smtp_port = 25 - these commented out as described ; For Win32 only. ;sendmail_from = m...@example.com ; For Unix only. You may supply arguments as well (default: sendmail -t -i). sendmail_path =/usr/sbin/sendmail -t -i -f m...@site.com From your terminal, you will need to verify that /usr/sbin/sendmail exists and can be called by your apache/php user. First off, make sure that sendmail is installed and functioning. I am not using sendmail that I know of. I didn't install anything - just the basic NON PRO MAMP Also I did not install postfix. and I am using the basic php function mail() You could get around using the mail function completely and use phpmailer or SwiftMail. They would allow you to talk directly to an outside SMTP server. In most cases, unless your web server happens to serve as your mail server, you would want to relay your message(s) through your official mail server. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Send php Mail not working in MAMP (non pro version)
Hi all, MAC LION 10.7.4 latest MAMP (non pro version) I've tried various things - but php send mail not working in MAMP (non pro version) ... mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] ) the same script works on a hosted server... tried this but not working... viewtopic.php?f=2t=10722 seems like I need to add more data - somewhere in php.ini or the php sendmail script like authentication info of mailhost and user / pass and port etc maybe setting data here? --- [, string $additional_headers [, string $additional_parameters ]] - i don't know how.. I also posted this at mamp forum but there does not seem much action there... http://forum.mamp.info/viewtopic.php?f=2t=37583p=53515#p53515 -- Thanks - Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Send php Mail not working in MAMP (non pro version)
On 10/17/2012 09:52 AM, Dave wrote: Hi all, MAC LION 10.7.4 latest MAMP (non pro version) I've tried various things - but php send mail not working in MAMP (non pro version) ... mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] ) the same script works on a hosted server... tried this but not working... viewtopic.php?f=2t=10722 seems like I need to add more data - somewhere in php.ini or the php sendmail script like authentication info of mailhost and user / pass and port etc maybe setting data here? --- [, string $additional_headers [, string $additional_parameters ]] - i don't know how.. I also posted this at mamp forum but there does not seem much action there... http://forum.mamp.info/viewtopic.php?f=2t=37583p=53515#p53515 First off, make sure that sendmail is installed and functioning. Make sure, if you happen to have install postfix as well, that it has replaced your sendmail. Then, from the cli, as your apache/php user, try sending an email using sendmail. # sendmail -v y...@email.com testing . ... Did it work? More then likely your php/apache process does not know where sendmail is or does not have permission to use it. Check in your php.ini file and see what is set as the sendmail_path Mine is set like this: ; For Unix only. You may supply arguments as well (default: sendmail -t -i). ;sendmail_path = As a standard user on my linux box I get this [jlucas@jim ~]$ which sendmail /usr/bin/which: no sendmail in (...) But as root, I get this [root@jim ~]# which sendmail /usr/sbin/sendmail So, make sure your apachephp user can see and execute sendmail -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Send php Mail not working in MAMP (non pro version)
Make sure, if you happen to have install postfix as well, that it has replaced your sendmail. Then, from the cli, as your apache/php user, try sending an email using sendmail. # sendmail -v y...@email.com testing . Thanks a lot Jim for the help... sorry this is getting a bit above me... if you mean use the terminal I have a friend that can help me soon try to change user to apache/php user (not sure how yet) and test this ... Did it work? More then likely your php/apache process does not know where sendmail is or does not have permission to use it. Check in your php.ini file and see what is set as the sendmail_path Mine is set like this: ; For Unix only. You may supply arguments as well (default: sendmail -t -i). ;sendmail_path = As a standard user on my linux box I get this [jlucas@jim ~]$ which sendmail /usr/bin/which: no sendmail in (...) But as root, I get this [root@jim ~]# which sendmail /usr/sbin/sendmail So, make sure your apachephp user can see and execute sendmail -- Jim Lucas Ji Jim, in the mamp php.ini file I had set like the demo to: [mail function] ; For Win32 only. ;SMTP = localhost - these commented out as described ;smtp_port = 25 - these commented out as described ; For Win32 only. ;sendmail_from = m...@example.com ; For Unix only. You may supply arguments as well (default: sendmail -t -i). sendmail_path =/usr/sbin/sendmail -t -i -f m...@site.com -- First off, make sure that sendmail is installed and functioning. I am not using sendmail that I know of. I didn't install anything - just the basic NON PRO MAMP Also I did not install postfix. and I am using the basic php function mail() -- Thanks - Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php