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("xxx...@xxxx.xxx") > 23 .From = "xxx...@xxxx.xxx" > 24 .Subject = "Linux Test" > 25 .Encrypt = Net.None > 26 .Port = 25 > 27 .Host = "smtp.xxxx.com" > 28 .User = "xxxx...@xxxx.xxx" > 29 .Password = "password" > 30 .Debug = True > 31 End With > 32 > 33 email.Send() > ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user