Question
Can't send email in PHP using Postfix
I already installed Postfix and it’s working sending from terminal. But Send mail via PHP is not coz I do know what setting or how to create or get the usersname / password and other details needed
//EMAIL SENDING CONFIGURATION
define(‘MAILER’, “smtp”);
define('SMTP_HOST’, “”);
define('SMTP_PORT’, 587);
define('SMTP_USERNAME’, “”);
define('SMTP_PASSWORD’, “”);
define('SMTP_ENCRYPTION’, “”);
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×