Sending mail from localhost using PHP

后端 未结 1 1912
清歌不尽
清歌不尽 2020-12-20 09:52

I am trying to send mail from localhost using PHP. I am using the following code to send the mail :-



        
相关标签:
1条回答
  • 2020-12-20 10:06
    1. Go to your php.ini file and change SMTP = localhost to SMTP = aspmx.l.google.com and uncomment sendmail_from and put in your sending gmail address. and set smtp_port = 25

    2. Restart localhost

    0 讨论(0)
提交回复
热议问题