I just downloaded this file and tried again in threadsafe+unicode mode : it works !Christian Uceda wrote:Gnozal I do not doubt you tried, so there is definitively something wrong somewhere, did you tried with the same version available here: "http://gnozal.ucoz.com/PureSMTP_450.zip" (7.01) and with PB version 4.50?
Tested with PB451RC2 and this file :
Code: Select all
MySMTPServer.s = "vsmail"
MySMTPPort.l = 25
If PureSMTP_OpenSMTPConnection(MySMTPServer, MySMTPPort) = #PureSMTP_Ok
Debug PureSMTP_GetLastServerMessage()
MailTo.s = "xxxxxxxxxxxx.xxxxxxx@xxxxxxxxxxxxxx"
MailFrom.s = MailFrom
Subject.s = "Test"
MsgBody.s = "Testing PureSMTP"
Attachments.s = ""
Status.l = PureSMTP_SendMail(MailTo, MailFrom, Subject, MsgBody, Attachments)
If Status = #PureSMTP_Ok
Debug "Message 1 : sent"
Debug "Status = " + Str(Status)
Debug PureSMTP_GetLastServerMessage()
Else
Debug "Message 1 : something went wrong !"
Debug "Status = " + Str(Status)
Debug PureSMTP_GetLastServerMessage()
EndIf
PureSMTP_CloseSMTPConnection()
Else
Debug "OpenSMTPConnection failed"
Debug PureSMTP_GetLastServerMessage()
EndIf