• Welcome to Theos PowerBasic Museum 2017.

Problem with CAfxSmtpMail

Started by Martin Foster, April 28, 2013, 02:44:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Martin Foster

I've been having a look at CAfxSmtpMail.inc and the included demo code. After plugging in the demo code into a simple test application and changing the details to my own settings (username, password, etc.), I can't get it to work. I've tried two different mail servers with the correct settings for each server and here's what I'm getting:

[Server 1]
"Error sending email: 550 You must give your username and password to send mail through this service."
NOTE: the username and password are correct for this server.

[Server 2]
"Error sending email: 220-We do not authorise the use of this system to transport unsolicted,"
Note the comma at the end of the line (that's a bit weird?)

Any ideas would be most welcome, thanks.