Send email from localhost running XAMMP in PHP using GMAIL mail server

后端 未结 5 1726
[愿得一人]
[愿得一人] 2020-11-22 11:21

I try to send an email from localhost to my yahoo email account using php mail() function, the return says I successfully send the email but I did not get any email. I\'ve b

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-22 12:13

    [sendmail]
    
    smtp_server=smtp.gmail.com  
    smtp_port=25  
    error_logfile=error.log  
    debug_logfile=debug.log  
    auth_username=myemail@gmail.com 
    auth_password=gmailpassword  
    force_sender=myemail@gmail.com
    

    need authenticate username and password of mail then only once can successfully send mail from localhost

提交回复
热议问题