[Gambas-user] gambas and email

mike webb mwebb at ...1362...
Wed Feb 22 16:13:05 CET 2006


Rob Kudla wrote:

>On Wed February 22 2006 09:29, mike webb wrote:
>  
>
>>>The 'mail' command ?
>>>      
>>>
>>just tried that one, i did:
>>mail -s "test message from sid" mwebb at ...1362...
>>the server just sat there, after a while i pressed control-c
>>and i got my prompt back.
>>    
>>
>
>It's meant to be used from other programs.  The following is 
>pseudo-code to give you an idea of how I'd use it from Gambas.  
>(Note: I don't think it's safe to assume that "mail" will be 
>installed on any system or that it will know how to send 
>Internet mail, so it may be safer just to open a socket to an 
>SMTP server, assuming you can get the user's ISP's mail server 
>address.)
>
>myproc = Shell "mail -s \"test message from sid\" 
>mwebb at ...1362..."
>
>print #myproc, "This is the body of the mail\r\n"
>
>close myproc
>
>To simulate that behavior from the command line, when mail is 
>just sitting there waiting for you to type control-C, type a few 
>lines and then press control-D on a blank line to (try to) send 
>it.
>
>Rob
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
>for problems?  Stop!  Download the new AJAX search engine that makes
>searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
>_______________________________________________
>Gambas-user mailing list
>Gambas-user at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>  
>
yup that works from the command line to. looks like a have at least 2 
differnet ways of doing this.
i think i know enough now. thanks everyone !!!!!!!





More information about the User mailing list