How To Send Emails Using Google SMTP Server Using XAMPP?

后端 未结 1 1246
情话喂你
情话喂你 2021-01-24 07:36

In php.ini I set:

SMTP = smtp.gmail.com
smtp_port = 465

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = mygmail@gmail.com

In

相关标签:
1条回答
  • 2021-01-24 08:02

    Most local boxes with Windows don't come with a SMTP server. You could use an external SMTP server and configure it in your php.ini file, but SMTP authentication is not possible.

    I recommend you to use PHPMailer, is a simple and flexible PHP Class, that can use a SMTP server with authentication. It is also more secure than using bundled PHP mail() function.

    http://phpmailer.worxware.com/

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