SendAnEmail

From Pickwiki
Jump to: navigation, search

The following utilities have all been recommended in MV forums for e-mailing from MV BASIC. Most of these are not Pick-based programs, so the general approach is to EXECUTE "!command " : OPTIONS in order to send your email. Some software is for free, some for fee, and quality often varies completely independent of the cost. If you know of other options, please update this list.

Since we're here, note that e-mailing to a cell/mobile phone is not the same as SMS. Lookup SMS in a search engine for details, or see http://www.twilio.com

Under Unix

Under Windows

Retrieving e-mail : POP3 / IMAP

Since fax is mentioned above, another utility used for fax with MV is VSI-FAX

Usage Examples =

Examples for Unix, sendmail and others

 WRITE MAIL.BODY ON DIR.F, "MAIL"
 EXECUTE "!mail -s test user@domain.com < /path/to/dir.f/MAIL"

From Frank Winans

 OPEN "unix:/tmp" to F.TMP else stop 'tmp' 
 BODY = "HELLO" :@AM:"LINE TWO OF EMAIL" 
 WRITE BODY ON F.TMP,'foo.txt' 
 CMD = "!cat  /tmp/foo.txt  |  mail  " 
 CMD := "  -s  'my email subject'    " 
 CMD := "   someb...@somewhere.com" 
 CMD := "  ;  rm  /tmp/foo.txt" 
 EXECUTE  CMD  CAPTURING  BUCKET 

A UUEnview Example

  * This will present the file as a base64 mime-encoded attachment 
  E=\!uuenview -b -f "\:FROM.USER:\" -m "\:RECIP:\" -s "\:SUBJECT:\" \:LOCATION 
  EXECUTE E

Examples for Windows

Blat

  • Full code from Ricky Ginsburg
  • Another code base from Robert Uiterwyk
  • Brian Leach posted a note here that shows how to send with BLAT, and also shows how to create a direct verb pointer.