Solved

PHP Email Problem

Posted on 2011-03-07
4
242 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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 count occurrences of each item in an array.

707 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