[Gambas-user] Send mail with smtp

Steven James Drinnan steven at ...2097...
Wed Mar 24 03:52:26 CET 2010


As a work around use sendmail as the mail transport. Just ensure the
service is running. And as it is usually installed by default on a lot
of Linux distributions. This is the case for the Desktop version of
Fedora.

Concerns

to be safe do not enable the port 25 on your firewall. (if enabled you
could be exploited as a SMTP relay)

I.E change

mail.Host = "mail.servidor.com"

to 
mail.Host = "localhost"

steven





On Tue, 2010-03-23 at 15:39 -0300, craf wrote:
> 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
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 





More information about the User mailing list