Hi
Using Windows 2012 R2.
IIS 7 and IIS 6 for the SMTP Virtual Server
In the past I sent mail through port 25 but now my ISP said I need to use port 587. Easy I thought but not.
Changed the port in IIS 6 SMTP Server. Tested with Telnet and Powershell and the test emails are being delivered.
Created a text file and save it in \mailroot\pickup and it is delivered.
but from Windev no luck.
MyNewSession is EmailSMTPSession
MyNewSession..ServerAddress = "smtp.mweb.co.za"
MyNewSession..Option = emailOptionSecuredTLS
//Tried this as well
//MyNewSession..Option = emailOptionDefault
MyNewSession..Name = "MyEmailAddress"
MyNewSession..Password = "MyPassword"
MyNewSession..Port = 587
EmailSetTimeOut(10)
IF EmailStartSession(MyNewSession) = True THEN
MyMessage is Email
MyMessage..Sender = "MyEmailAddress"
Add(MyMessage..Recipient, "let@iafrica,com")
MyMessage..Subject = "Hello World"
// Send the message
EmailSendMessage(MyNewSession, MyMessage)
EmailCloseSession(MyNewSession)
ELSE
Error("Unable to establish connection", ErrorInfo(), ...
"In case of time-out, check the parameters of the "+ ...
"""Firewall"" on the port used (587)")
END
Nothing is going out. I cannot see anything being placed in the \mailroot\pickup folder or \mailroot\queue folder.
I saw a previous post where DerekT mentioned that 'Allow access from less secure apps' must be turned on in the mail configuration but to get my ISP to look at that seems impossible.
Any help will be much appreciated.
Ericus Steyn
Using Windows 2012 R2.
IIS 7 and IIS 6 for the SMTP Virtual Server
In the past I sent mail through port 25 but now my ISP said I need to use port 587. Easy I thought but not.
Changed the port in IIS 6 SMTP Server. Tested with Telnet and Powershell and the test emails are being delivered.
Created a text file and save it in \mailroot\pickup and it is delivered.
but from Windev no luck.
MyNewSession is EmailSMTPSession
MyNewSession..ServerAddress = "smtp.mweb.co.za"
MyNewSession..Option = emailOptionSecuredTLS
//Tried this as well
//MyNewSession..Option = emailOptionDefault
MyNewSession..Name = "MyEmailAddress"
MyNewSession..Password = "MyPassword"
MyNewSession..Port = 587
EmailSetTimeOut(10)
IF EmailStartSession(MyNewSession) = True THEN
MyMessage is Email
MyMessage..Sender = "MyEmailAddress"
Add(MyMessage..Recipient, "let@iafrica,com")
MyMessage..Subject = "Hello World"
// Send the message
EmailSendMessage(MyNewSession, MyMessage)
EmailCloseSession(MyNewSession)
ELSE
Error("Unable to establish connection", ErrorInfo(), ...
"In case of time-out, check the parameters of the "+ ...
"""Firewall"" on the port used (587)")
END
Nothing is going out. I cannot see anything being placed in the \mailroot\pickup folder or \mailroot\queue folder.
I saw a previous post where DerekT mentioned that 'Allow access from less secure apps' must be turned on in the mail configuration but to get my ISP to look at that seems impossible.
Any help will be much appreciated.
Ericus Steyn