This topic is locked
[SOLVED]

 Sending email in a server with STARTTLS security

1/8/2014 2:46:35 PM
PHPRunner General questions
N
notuo author

Hi.
I have to use a special server to sending email and this server requires STARTTLS security.
Anyone knows a way to do this within PHPRunner?
Thanks for your time

Admin 1/8/2014

Yes, set SMTP port to 465

N
notuo author 1/8/2014



Yes, set SMTP port to 465


Thanks,
but this email server needs port 587 besides the STARTTLS. If I use 465 phpmailer will use 465 isn't?
Regards

Admin 1/8/2014

In include/phpfunctions.php file you can find runner_mail_smtp function.
Here is the piece of code that turns on SSL

if ($mail->Port == 465)

$mail->SMTPSecure = "ssl";


You can modify it to turn on SSL when port is either 587 or 465 or even do something else.

N
notuo author 1/8/2014



In include/phpfunctions.php file you can find runner_mail_smtp function.
Here is the piece of code that turns on SSL

if ($mail->Port == 465)

$mail->SMTPSecure = "ssl";


You can modify it to turn on SSL when port is either 587 or 465 or even do something else.


Hi, Thanks.
I see this. My only question is that this file is in the output directory, so every generation I have to do this change, unless there is another way I am unaware of.

Admin 1/8/2014

You can change it in the folder where PHPRunner is installed, source\include\phpfunctions.php

N
notuo author 1/9/2014



You can change it in the folder where PHPRunner is installed, source\include\phpfunctions.php


Ok, I get it. But this means all the projects will have the same settings and is not the case generally. Maybe in the project source folder. Or not?
In the last... any other things that may change during generation I need to be aware of?
Thanks for your help.

N
notuo author 1/12/2014



Ok, I get it. But this means all the projects will have the same settings and is not the case generally. Maybe in the project source folder. Or not?
In the last... any other things that may change during generation I need to be aware of?
Thanks for your help.


Any answer for this last question?