[Gambas-user] gambas and email

Bertand-Xavier M. katsancat at ...11...
Thu Feb 23 07:36:07 CET 2006


On Wednesday 22 February 2006 16:01, mike webb wrote:
> Bertand-Xavier M. wrote:
> >On Wednesday 22 February 2006 14:45, mike webb wrote:
> >>i'm going to write a program which will  will need to be able to send
> >>out emails.
> >>the message of the emails will be retrieved from a mysql database. what
> >>would be the best way to send the emails.
> >>call a shell and try sendmail ??
> >
> >Hi,
> >Best way is to create a socket and discuss with the server using the SMTP
> >protocol.
> >
> >yeah, that looks good. just telneted into the smtp server and was able to
> > send a email to myself by hand something like
>
> telnet 192.168.3.4 25
> answers with domain ESMTP postfix
> type: ehlo mike.com
> receive resonse:
> type: mail from: mwebb at ...1373...
> type: rcpt to: mwebb at ...1374...
> type:data
> then enter message followed by cr/lf "." cr/lf
> message was sent.
> all i have to do is setup a socket ? and use that instead of telnet?
>
Yep, here's a short example project written with Gambas 1.9.25
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SMTP_Socket_Example.tar.gz
Type: application/x-tgz
Size: 3703 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20060223/7011814f/attachment.bin>


More information about the User mailing list