Map mail

De MappingDoc

map_mail

This command sends e-mail through SMTP.

-server:XXXXX            : SMTP Server (192.168.1.1,seversmtp.mydomain.local)
-domain:XXXXX            : SMTP domain (mydomain.local)
-from:XXXXX              : Sender (user@mydomain.local)
-to:XXXXX                : Recipients (user@otherdomain.com;user2@domain2.com)
-subject:XXXXX           : Subject
-message:XXXXX           : Message (message or stdin)
[-file_name:XXXXX      ] : Path of file attached (/apps/mapping/temp/invoice_315763.pdf)
[-attachment_name:XXXXX] : Name of file attached with extension (Invoice.pdf)
[-cc:XXXXX             ] : Carbon Copy
[-bcc:XXXXX            ] : Blind Carbon Copy
[-port:XXXXX           ] : SMTP Port (default: 25)
[-login:XXXXX          ] : Login for authentication to SMTP server
[-passwd:XXXXX         ] : Password for authentication to SMTP server
[-use_html:YES|NO      ] : Send as text/html (YES,NO,ON,OFF,1,0 ; Default: NO)
[-acknowledgment       ] : Receipt acknowledgment
[-read_receipt         ] : Read acknowledgment
[-verbose              ] : Verbose mode

Example:

map_mail -server:smtp-mail.outlook.com -port:587 -login:gbarret@mappingsuite.onmicrosoft.com" "-passwd:longPasswordWith4 TypesOfChar" -domain:mappingsuite.com -from:gbarret@mappingsuite.com -to:gbarret@mappingsuite.com -subject:testmail -message:test
//Note that it is not my real password