Ok, the following programming returns an error code of -4:
var n as Int
n = @SendMail("smtp.acebanner.com", "Test email from AceBanner, per Ray's request.", "cjc@acebanner.com", "support@lantica.com", "", "", "Test message.", "", "", "C:\Sesame2\Merge\EstimateMerge.rtf")
If n = 0
{
@MsgBox("Email was sent succesfully.", "", "")
}
Else
{
@MsgBox("The email was not sent properly.", "The error code returned was: " + n, "")
I get a -9 error code if I try putting in the username and password. In that case, my username is "cjc" not "cjc@acebanner.com".
If I put in the username as "cjc@acebanner" (leave the password as is) I get an error code of -7. I double-checked the username and password by using my email service's web-based mail client, so I know I've got the username and password correct.
Now, if I replace "smtp.acebanner.com" with "mail.acebanner.com" and fully enter the username "cjc@acebanner.com" I still get an error code of -7. Removing the @acebanner from the username string brings me back to error code -9.
It sort of worked for me when using my personal email server mail.optonline.net this past weekend when I was experimenting with it, but the attachment wouldn't work (zero bytes).
If I take out user/pass and the attachment, so that the programming looks like this:
var n as Int
n = @SendMail("mail.acebanner.com", "Test email from AceBanner, per Ray's request.", "cjc@acebanner.com", "support@lantica.com", "", "", "Test message.", "", "", "")
If n = 0
{
@MsgBox("Email was sent succesfully.", "", "")
}
Else
{
@MsgBox("The email was not sent properly.", "The error code returned was: " + n, "")
}
- then I get error code -4! I feel like I can get almost any error code, LOL! If I change the server in the above programming to "smtp.acebanner.com" I still get -4 as an error code. Any idea why this could be?