Solved

PHP Email Problem

Posted on 2011-03-07
4
235 Views
Last Modified: 2012-05-11
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

0
Comment
Question by:thecookman
  • 2
4 Comments
 
LVL 43

Expert Comment

by:ravenpl
ID: 35059627
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.
0
 

Author Comment

by:thecookman
ID: 35060137
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?
0
 
LVL 5

Accepted Solution

by:
SimonDard earned 250 total points
ID: 35081425
Search the entire codebase for smtp_port. Logically, you will find this keyword only in the configuration page (as listed in your question) and any page/script that sets up the sending engine. You might find something like ini_set or phpmailer there.
0
 

Author Comment

by:thecookman
ID: 35940275
Thank you, the password was set wrong
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now