Message body doesn't show in gmail
hi i would like to show an html file as message body in previous version i use this command to do that:
mailsend -from "[email protected]" -name "iiiWe.com" -smtp "mail.mysite.com" -auth-login -port "25" -user "[email protected]" -pass "*****" -sub "MySubject" -log mail.log -d "mysite.com" -rt "[email protected]" -attach "file.html,text/html,i,file.txt,none,none,i" -cs "UTF-8" -list "list/l1.txt" 2>&1 >/dev/null
now it returns this error: Error: Invalid string specified with -a "file.html,text/html,i,file.txt,none,none,i"
i would like to send my email with gmail and when i use this command:
mailsend -ssl -from "[email protected]" -name "Something" -smtp "smtp.gmail.com" -auth-login -port "465" -user "[email protected]" -pass "******" -sub "MySubject" -log mail.log -rt "[email protected]" -msg-body "file.html" -enc-type "8bit" -cs "UTF-8" -list "list/l1.txt" Mail sent successfully
but in gmail i have something like this: http://www.axgig.com/images/31625861367155646184.jpg
Thanks mailsend Version: @(#) mailsend v1.17b15 Compiled with OpenSSL: OpenSSL 1.0.1e 11 Feb 2013
For first command, use multiple -attach if you have more than one attachment. Example: -attach "file.html" -attach "file.txt". Before each -attach you can specify its own mime-type, encoding type, cs etc.
Specify mime type before -msg-body. example: -mime-type "text/html" -msg-body "file.html"
Thanks.