[Gambas-user] gb.SMTP Errors

Marty McGlensey mmcg29440 at ...3163...
Wed Aug 21 02:25:09 CEST 2013


Thanks, Willy. The change from mime.Text to "text/Plain cured the Mime
error. I still get the authentication error: error 535 - 5.7.8. I've tried
to send emails to accounts located on the same server. No mail sent. Tried
setting gb.smpt to the same parameters as my wife's account. Her account
works with no encryption and port 25 in window Outlook but, fails with
gb.smpt. Same error 535. See routine below.

 

Dim t$ As String

> 15      Dim email As New SmtpClient

> 16

> 17      t$ = File.Load("/home/marty/Test.txt")

> 18

> 19      With email

> 20        .Add("Hello")

> 21        .Add(t$, Text/Plain, "Test.txt")

> 22        .To.Add("xxxxxx at ...3172...")

> 23        .From = "xxxxxx at ...3172..."

> 24        .Subject = "Linux Test"

> 25        .Encrypt = Net.None

> 26        .Port = 25

> 27        .Host = "smtp.xxxx.com"

> 28        .User = "xxxxxxx at ...3172..."

> 29        .Password = "password"

> 30        .Debug = True

> 31     End With

> 32

> 33      email.Send()

> 

 




More information about the User mailing list