[Gambas-user] Send mail using SMTP

Benoit Minisini gambas at ...1...
Sat Dec 30 09:28:33 CET 2006


On Saturday 30 December 2006 02:55, Pablo Terradillos wrote:
> have you found something?
>
> On 12/26/06, Pablo Terradillos <tehsis at ...626...> wrote:
> > Ok, i attached the files...
> >
> > The program is to send message to cell phones... but, only for test, it
> > send the message to my e.mail
> >
> > On 12/26/06, Benoit Minisini <gambas at ...1...> wrote:
> > > On Tuesday 26 December 2006 23:55, Pablo Terradillos wrote:
> > > > Here you have:
> > > >
> > > > SmtpClient1.Host = "mail.gigared.com"
> > > > SmtpClient1.From = remitente
> > > > SmtpClient1.To.Add("tehsis at ...626...")
> > > > SmtpClient1.Add("hola", "text/plain;charset=utf-8") 'CONFLICTO
> > > > SmtpClient1.Send()
> > > >
> > > > Let me know if you want the entire program...

Actually the bug was plain stupid. Just specify a name for the attachment as a 
workaround:

SmtpClient1.Add("hola", "text/plain;charset=utf-8", "attachment #1")

I will fix that in the svn repository.

Regards,

-- 
Benoit Minisini





More information about the User mailing list