简体   繁体   中英

AWS SES send email with mutt

I have set up the sendmail in EC2 to send out email with the instruction provided by AWS: https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-sendmail.html But I can't find any instruction to set up mutt on EC2, I want to use mutt instead of sendmail as I want to send with file attachment. Can anyone tell me how I can set up the mutt on EC2 to send email? Thanks in advance

mutt can be used with AWS SES. The first step is to ensure that you have a verified email address for sending via SES. Follow this guide here ( https://docs.aws.amazon.com/ses/latest/dg/send-email.html ) to get to stage where you have verified your email address. Once you are at the point, simply create or update your.muttrc file:

set from="Your verfied email address <verfied@example.com>"
set smtp_url="smtp://YOURAWS_SES_USERNAME@email-smtp.eu-central-1.amazonaws.com:587"  #Swap out email-smtp.eu-central-1.amazonaws.com with whatever email region you are using
set smtp_pass="YOURAWS_SES_PasswordHere"

That's all you'll need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM