php - How to use phpMail under MAMP for Windows -
i use couchcms content manager website. install mamp (windows version) php/mysql/apache solution. i'm trying enable phpmail feature use gmail's smtp, failed.
my php.ini in c:\mamp\conf\php5.6.3\php.ini
[mail function] ; win32 only. smtp = smtp.gmail.com smtp_port = 25 auth_username = xxxxxx auth_password = xxxxxx ; win32 only. sendmail_from = xxxxx@gmail.com ; unix only. may supply arguments (default: "sendmail -t -i"). ;sendmail_path =
any idea debug issue?
if use mamp need provide separate smtp solution. example, can install email relay or other 3rd party software smtp server or smtp relay functionality, configure , use scripts executed in mamp servers.
smtp = smtp.gmail.com smtp_port = 25
smtp.gmail.com can accessed on ssl/tls need use ports 465 or 587. php mail send function can work no-ssl smtp servers can not use send email on gmail servers.
so have provide own smtp solution if using mamp.
mamp pro bundled stmp relay functionality , can relay php mail messages (mamp pro uses default localhost , port 25 no changes there).
Comments
Post a Comment