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

后端 未结 5 1720
[愿得一人]
[愿得一人] 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:11

    Don't forget to generate a second password for your Gmail account. You will use this new password in your code. Read this:

    https://support.google.com/accounts/answer/185833

    Under the section "How to generate an App password" click on "App passwords", then under "Select app" choose "Mail", select your device and click "Generate". Your second password will be printed on the screen.

提交回复
热议问题