Link to home
Start Free TrialLog in
Avatar of James Smith
James SmithFlag for United States of America

asked on

PHP Email Problem

Hello everyone,
I need to change the below code to allow TLS and MY SMTP Port to 587. Not sure what the code is for TLS.



 Please see that attached for code
<?php

// Database Constants
defined('DB_SERVER') ? null : define("DB_SERVER", "localhost");
defined('DB_USER')   ? null : define("DB_USER", "root");
defined('DB_PASS')   ? null : define("DB_PASS", NULL);
defined('DB_NAME')   ? null : define("DB_NAME", "prestige_database");


// Email Settings
$site['from_name'] = 'Prestige IT '; // from email name
$site['from_email'] = 'no-reply@prestige.com'; // from email address

// Just in case we need to relay to a different server,
// provide an option to use external mail server.
$site['smtp_mode'] = 'enabled'; // enabled or disabled
$site['smtp_host'] = 'mail.prestige.com';
$site['smtp_port'] = 25;
$site['smtp_username'] = 'no-reply@prestige.com';
$site['smtp_password'] = 'n1234';



?>

Open in new window

Avatar of ravenpl
ravenpl
Flag of Poland image

Unfortunately Your question lacks the information about the email sending engine used by Your php. Changins the smtp port 587 looks easy ($site['smtp_port'] = 587;) but making the sending engine TLS aware depends on the engine.
Avatar of James Smith

ASKER

Hi i am new to PHP the person who designed it has left the company. How can i find the engine?
I see something called mercury free installed on the server?
ASKER CERTIFIED SOLUTION
Avatar of SimonDard
SimonDard

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you, the password was set wrong