Theos PowerBasic Museum 2017

Webmaster: José Roca (PBWIN 10+/PBCC 6+) (SDK Forum) => Discussion => Topic started by: Martin Foster on April 28, 2013, 02:44:01 PM

Title: Problem with CAfxSmtpMail
Post by: Martin Foster on April 28, 2013, 02:44:01 PM
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.