send email
to string : the recipients of the mail
from string : the author of the mail
subject string : the subject of the mail
body string, bodydescriptor, or list : the body of the mail. If body is a list, a multipart/alternative body is created. A string is equivalent to a bodydescriptor with a "text/plain" mime-type.
[SMTP server string] : the smtp server to send the mail (smtp.foobar.com),default is 'localhost'
[cc list of string] : the list of cc recipients of the mail {cc1,cc2,...}
[bcc list of string] : the list of bcc recipients of the mail {bcc1,bcc2,...}
[pseudoto string] : the virtual to recipient of the mail (useful for bcc-only email)
[attachments list of file] : the list of attachments for the mail {file1,file2,...}
[priority integer] : 1=highest, 2=hight, 3=normal(default), 4=low, 5=lowest
[extra headers list of list] : {{header 1,value 1},...,{header n,value n}}
[reply to string] : Where to send a reply to this message
[errors to string] : Where to send all the error messages
[port integer] : the port on which runs the SMTP server (25 is the default)
[timeout integer] : abort after how many seconds ? (default is 60 seconds)
[using datestamp date] : you might wish to have control over the sent date (either a string or an applescript date).
[ssl boolean] : whether you want to use SSL encryption
[ssl verification verify none | verify peer] : what kind of SSL verification to do with your certificates
[pem certificate file file] : where is your PEM certificate, should be left blank if using 'verify none'
[pem certificate directory file] : where is your directory containing PEM certificate, should be left blank if using 'verify none'
[authentication plain | login | pop3 | crammd5 | cramsha1 | anonymous | auto] : the type of authentication mechanism to use
[username string] : your login if the server requires an authentication
[password string] : your password if the server requires an authentication. If no password is given, XMail will try to search in the keychain for something suitable.
[sending boolean] : whether you want the mail to be sent or not (default is true)
[output boolean] : whether you want the mail to be returned by 'send mail' (default is the opposite of the sending parameter)
[saving in file] : whether you want to save the mail sent.
[output encoding string] : a IANA encoding name ("UTF-8", "ISO-8859-1", "US-ASCII",…). The encoding to be used to compose the mail (default is "UTF-8")