Few months back a customer of my client complained that he was not able to open the email attachments(Purchase Orders/Transactions etc.) from their tablets(iPad, iPhone etc.), but the same attachment was fine with desktop or laptop.
Reason: Attachment with html email body is not working in tablets and 'sendmail' plugin was being used with html email body.
Solution to this issue is to use text email body instead of html one.
'mutt' plugin instead of 'sendmail' resolved the issue.
Lets have a look at some mutt commands
mutt -s "$P_SUBJECT" -a $P_ATTFILE $P_MAIL_TO <
/AKUMAR/D1/AKTEST/apps/apps_st/appl/ak/12.0.0/bin/$P_EMAIL_BODY
In the above case it will take 'email from' details from .muttrc profile.
If you want to change the email from, either edit the .muttrc file or use below command
mutt -e "set from=$P_MAIL_FROM" -s "$P_SUBJECT" -a $P_ATTFILE $P_MAIL_TO <
/AKUMAR/D1/AKTEST/apps/apps_st/appl/ak/12.0.0/bin/$P_EMAIL_BODY
There is another profile value in .muttrc 'realname' which is the name/description of the emailid ('from' profile value). You can use below command to override these two profile values
mutt -e "my_hdr From: Email Test Team <$P_MAIL_FROM>" -s "$P_SUBJECT" -a $P_ATTFILE $P_MAIL_TO < /AKUMAR/D1/AKTEST/apps/apps_st/appl/ak/12.0.0/bin/$P_EMAIL_BODY
Generally you can find the .muttrc file in the $HOME directory as a hidden file.
Reason: Attachment with html email body is not working in tablets and 'sendmail' plugin was being used with html email body.
Solution to this issue is to use text email body instead of html one.
'mutt' plugin instead of 'sendmail' resolved the issue.
Lets have a look at some mutt commands
mutt -s "$P_SUBJECT" -a $P_ATTFILE $P_MAIL_TO <
/AKUMAR/D1/AKTEST/apps/apps_st/appl/ak/12.0.0/bin/$P_EMAIL_BODY
In the above case it will take 'email from' details from .muttrc profile.
If you want to change the email from, either edit the .muttrc file or use below command
mutt -e "set from=$P_MAIL_FROM" -s "$P_SUBJECT" -a $P_ATTFILE $P_MAIL_TO <
/AKUMAR/D1/AKTEST/apps/apps_st/appl/ak/12.0.0/bin/$P_EMAIL_BODY
There is another profile value in .muttrc 'realname' which is the name/description of the emailid ('from' profile value). You can use below command to override these two profile values
mutt -e "my_hdr From: Email Test Team <$P_MAIL_FROM>" -s "$P_SUBJECT" -a $P_ATTFILE $P_MAIL_TO < /AKUMAR/D1/AKTEST/apps/apps_st/appl/ak/12.0.0/bin/$P_EMAIL_BODY
Generally you can find the .muttrc file in the $HOME directory as a hidden file.
No comments:
Post a Comment