AWS SES send email with mutt - amazon-ec2

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.

Related

How to upload copy of sent with smtp email

I use go-mail library to send emails with smtp. But I faced common issue that sent emails won't appear in sent folder. Googling I found that the only way to solve it is to upload sent email though imap.
The question is how do I obtain copy of sent email with smtp email?
The question is how do I obtain copy of sent email with smtp email?
You can't. SMTP is just for delivering mail. There is no concept of users mailboxes and specifically the Sent folder within SMTP.
We've implemented the following approach and it works for us:
Send email with smtp and bcc to own email.
Move/upload email with imap to sent folder.
For polling new messages use UID which is auto increment, so just remember the last processed and download all that is more than that.

Use multiple sender address in Laravel Email

How to use different sender address in sending emails in Laravel. What i want is to send some emails from one email id and some mails from second email id but gmail is picking up every time the configuration done in env not from mailable class.
You can't replace sender with Google SMTP service.
Google rewrites the From and Reply-To headers in messages you send via it's SMTP service to values which relate to your gmail account.
GMail does allow sending via different addresses or alias but this is for sending via the GMail web app, see Here
If you own the domain you are supposedly sending from, use the Gmail for Domains , and setup a "myapp#mydomain.com" account.
Or, use another SMTP provider

Lravel 5.6 : emails sent using mail facade go to junk for only hotmail and outlook addresses

i'm setting up automatic emails for events like user registration and change password etc. the problem is that the emails go to junk for Hotmail,outlook whereas work fine for gmail.
I have tested my email for junk content and https://www.mail-tester.com/ gave me a score of 8.5/10 and i don't want to ask my recipients to manually add me to safe senders list
You need to verify your server and sender for it appear in inbox. Have a look at SPF and DKIM.
https://www.sparkpost.com/blog/understanding-spf-and-dkim/
You can also use other email services such as mailchimp, amazon ses etc

Laravel mail send got Email address is not verified

Does anyone came across with this error message when sending mail in Laravel, is there a way to solve this?
Swift_TransportException in AbstractSmtpTransport.php line 383:
Expected response code 250 but got code "554", with message "554 Message rejected: Email address is not verified.
"
I did verified the email addresses and its been "verified" but still came across this error..
Laravel is working fine. You are getting an error message from the AWS mail server.
http://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-response-codes.html
You are trying to send email from an email address or domain that you have not verified with Amazon SES. If your account is still in the sandbox, you also need to verify the recipient address. For more information, see Verifying Email Addresses in Amazon SES.
Note that Amazon SES has endpoints in multiple AWS regions, and email address verification status is separate for each AWS region. You must complete the verification process for each sender in the AWS region(s) you want to use. For information about using Amazon SES in multiple AWS regions, see Regions and Amazon SES.
Make special note of that second paragraph. You may need to verify the email for the specific region you are trying to contact, or you need to change your contact address to the correct region.
For breif information refer below link
http://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-response-codes.html

Avoid emails to send in Junk/Spam

I my CI application I want to send email in inbox.
I checked my server IP on http://www.mxtoolbox.com/Public/Tools/Blacklists.aspx & it is not in any blacklist but if i send email to hatmail it goes to junk is there any way to by pass email to inbox?
I have tested both CI email lib as well as PHP mail function but both send email in junk/spam also just send with a text Hello from my gmail id.

Resources