How to hook SendGrid to Free Gmail account (Not Google for work account)?
See: https://support.google.com/mail/answer/22370?hl=en
- Click the gear in the top right.
- Select Settings.
- Click the Accounts and Import tab.
- Under Send mail as, click Add another email address.
- Click Add account >>
- Give a descriptive name to this new "email transmitter" (e.g. "Send mails via SendGrid")
- Give any email address that belong to you but not a GMAIL email (e.g [email protected])
- Uncheck the Alias check mark
- Change your SMTP to smtp.sendgrid.net
- Use ports 587 for plain/TLS connections .
- SendGrid username (sendgridname)
- SendGrid password (sendgridpassword)
- Gmail will send you a verification email to the "transmitter email" (e.g to [email protected])
- Open your other account ([email protected]) and either click the link in the message Gmail sent or enter the confirmation code in the Accounts and Import section of your Gmail settings.
- Whenever you want to send email from Gmail via SendGrid when you compose the email, in the “from” field select the SendGrid email (rami via SendGrid).
- The will be send as like it has been send from the “email transmitter” (e.g it will send to [email protected]).
- Type the verification code and you are set.
Next time you want to compose an email from Gmail please select the field "FROM" and choose the new "transmitter email" (e.g. "Send mails via SendGrid"). Write your email and send it. It will be send via SendGrid.
If you login into your SendGrid account you can find many statistics on this email such as how many people have open this email. (https://sendgrid.com/logs/index).
The only thing that I couldn't figure is how use the SMTP protocol from GOOGLE JAVASCRIPT (not java) in order to manipulate my emails.
There are many SendGrid SMTP commands that can be added to the message headers but I couldn't figure how to do it.