[Gambas-user] Send an Email??

Rob sourceforge-raindog2 at ...94...
Fri Jul 16 18:58:05 CEST 2004


On Friday 16 July 2004 11:05, Nicolas Marzoni wrote:
> Could sombody tell me how do I  send an email whit gambas
> without opening a mail program. What I want is; send an email,
> and let the user working normaly.

You have two options really, both of which may require some setup 
by the user:

(a) use EXEC or SHELL to invoke the "sendmail" command line 
program in the background.  This is not to be confused with the 
mail server called "sendmail"; most Linux mail servers include a 
program called "sendmail" to send mail, and there are a number 
of standalone "sendmail" programs.  Nonetheless, this assumes 
sendmail is installed on the user's machine, and on many 
desktop-oriented Linux distributions it is not.

(b) Open a direct SMTP connection to the user's ISP's mail 
server.  You can usually default to sending to "mail", port 25, 
but you will need a configuration dialog to let the user set the 
mail server if it isn't.

Most programs that send mail (and aren't mail clients) offer both 
these options and the user can pick whichever he prefers.

Rob





More information about the User mailing list