[Gambas-user] Send mail using SMTP

Pablo Terradillos tehsis at ...626...
Tue Dec 26 19:23:28 CET 2006


thanks, but, That doesn't works... i get the same error...

Anyway, i found this in google:
http://www.nabble.com/Release-of-gambas-1.9.26-t1211000.html

Using the example...

smtpclient1.Host = "someserver.com"
smtpclient1.From =
"tehsis<http://www.nabble.com/user/SendEmail.jtp?type=post&post=3200361&i=0>"

smtpclient1.To.Add("someone at ...1624...<http://www.nabble.com/user/SendEmail.jtp?type=post&post=3200361&i=1>")

smtpclient1.<http://www.nabble.com/user/SendEmail.jtp?type=post&post=3200361&i=2>.Add("Hello",
"text/plain;charset=utf-8")
smtpclient1.send()

But i get an error #11... at the line
"smtpclient1.<http://www.nabble.com/user/SendEmail.jtp?type=post&post=3200361&i=2>.Add("Hello",
"text/plain;charset=utf-8") "

Thanks you!

On 12/26/06, Benoit Minisini <gambas at ...1...> wrote:
>
> On Friday 22 December 2006 17:33, Pablo Terradillos wrote:
> > Hi everyone, this is my first message on this list, and i'm a new
> Gamba's
> > User...
> >
> > My question is about the gb.net.smtp component.
> >
> > I have two problems... with the way i have to use this component... let
> me
> > explain...
> >
> > I want to send an email to "somebody at ...1623..." using my ISP's smtp
> > server
> >
> > So... i put an smtpclient named smtpclient1 into my form a text box
> which
> > contains the name of the sender and a text area which contains the
> message
> > itself...
> >
> > how can i do it? i tried this way...
> >
> > smtpclient1.Host = "myispserver.com"
> > smtpclient1.To = "somebody at ...1623..."
> > smtpclient1.From = "myname"
> >
> > but of course... this doesn't works... Gambas says that "smtpclient.tois
> > read only"
> >
> > So... my questions...
> >
> > 1- How is the correct way to use this component?
> > 2- In which property would be the message? (the one's contained in the
> text
> > area)
> >
> > Hope you can help me... i didn't found anything googling or in the
> > Gambas'help...
> >
> > Thank's you in advance
>
> You must write:
>
> smtpclient1.To = ["somebody at ...1623..."]
>
> 'To' is a string array, so that you can specify more than one sender!
>
> Regards,
>
> --
> Benoit Minisini
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Pablo E. Terradillos - Tehsis
http://tehsis.blogspot.com
http://softehsis.blogspot.com



More information about the User mailing list