Warning: mail(): SMTP server response: 530 SMTP authentication is required.
Posted by: genrex62 (41.203.71.---)
Date: July 13, 2016 07:23AM

I tried using the mail function on the wampserver and my php.ini kept throwing this error. Obviously I gotta somehow authenticate the SMTP server. How do I do that?



Edited 1 time(s). Last edit at 07/13/2016 07:25AM by genrex62.

Options: ReplyQuote
Re: Warning: mail(): SMTP server response: 530 SMTP authentication is required.
Posted by: RiggsFolly (Moderator)
Date: July 13, 2016 10:58AM

Hi

The mail() function in PHP just passes an email to an email server for it do do the actual delivery. Windows does not have a mail server by default so it does not work, unless you install one.

The simplest way to mail is to us phpMailer which is a PHP library that you put into your site code.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.