[Gambas-user] gambas and email

Ken Harding email at ...1378...
Thu Feb 23 09:19:47 CET 2006


This worked for me but I had to make the following mod:

   DIM s AS String
     cout("> Connected, sending msg ...")
     WAIT 5 ' ** Add this line **
      s = "HELO [" & Sk.LocalHost & "]\r\n" &

Bertand-Xavier M. wrote:
> 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






More information about the User mailing list