[Gambas-user] Send mail with smtp
craf
prog at ...2177...
Tue Mar 23 19:39:36 CET 2010
Hi.
I'm trying to send an email from my computer, using the gb.net.smtp
component.
The code that uses it:
' Gambas module file
PUBLIC SUB Main()
DIM mail AS NEW SmtpClient
mail.To.Add("user at ...2400...")
mail.Subject = "Test Mail"
mail.From = "user at ...2401..."
mail.Host = "mail.servidor.com"
mail.Port = 25
mail.Add("hello,world", "text/plain")
mail.Send()
END
When executed, this throws the following error:
"Server won't accept sender while starting dialog(smtp error code #575)"
Any ideas?
Regards
[OperatingSystem]
OperatingSystem=Linux
KernelRelease=2.6.28-14-generic
DistributionVendor=ubuntu
DistributionRelease="Ubuntu 9.04"
[System]
CPUArchitecture=i686
TotalRam=1026628 kB
[Gambas]
Gambas1=Not Installed
Gambas2=2.20.2
Gambas2Path=/usr/local/bin/gbx2
Gambas3=Not Installed
More information about the User
mailing list