Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

SMTP Settings - Read From Database

$
0
0
Hello,

First at all, thank for this great tool.

I having problem using the custom SMTP settings....

I put these fix values in After Application Init (Of couse using my real password and real user)

(This fix values in future I will take from a email setup table in database)

GlobalVars.globalSettings.InitAndSetArrayItem(false, "useBuiltInMailer");
GlobalVars.globalSettings.InitAndSetArrayItem(true, "useCustomSMTPSettings");
GlobalVars.globalSettings.InitAndSetArrayItem("smtp.office365.com", "strSMTPServer");
GlobalVars.globalSettings.InitAndSetArrayItem("myemail@domain.es", "strFromEmail");
GlobalVars.globalSettings.InitAndSetArrayItem("myemail@domain.es", "strSMTPUser");
GlobalVars.globalSettings.InitAndSetArrayItem("password", "strSMTPPassword");
GlobalVars.globalSettings.InitAndSetArrayItem("587", "strSMTPPort");
GlobalVars.globalSettings.InitAndSetArrayItem("tls", "SMTPSecure");

And its not working, What I am doing wrong?

If I put same data in built in email setup works perfect.

Thank you....

Viewing all articles
Browse latest Browse all 2586

Trending Articles