[Gambas-devel] How to: send email with Gambas ?

Tim Stefano priastefano at ...506...
Thu Sep 21 10:40:01 CEST 2006


Montelupo Fiorentino, Italy 21 Settembre/September 2006

Hello to all,

I'm a new developer in GAMBAS with Linux so for me everything is new.
I try to found some example about send email with Gambas... but I'm not succed so I try to ask in the list

I have installed ver 1.9.33 of gambas from kudla.org and I can work with serial line, browser and GUI interface (Qt).

Now I try to use gb.net.smtp to send email in this way:

smtpobj.From = "priastefano at ...255..."                                '    I think the address who send the email
smtpobj.To = "priastefano at ...506..."                                                '    I think the address who receive the email
smtpobj.Add ( "/home/Stefano/NameImage.jpg","image", "")      '     Attacched file ?
smtpobj.Send( )                                                                             ' Send the message

is correct ? (I think NO)

when I try to set the address for 
        smtpobj.TO = "priastefano at ...506..."
the interpreter say that:    smtpobj.TO is read only and I'm stop here.

Can you help me ?

Thank you very much in advance

Distinti Saluti/Best Regards
            Stefano Pria
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20060921/b029f5c7/attachment.html>


More information about the Devel mailing list