how to send mail with sendgrid and google cloud function? - email

I'm new with Google cloud functions and Sendgrid,I'm looking for someone that can teach me how to:
->create a cloud function on google that will send an email to a mail that i choose,using Sendgrid;
->Implement it with Dialogflow
I'm having issues with the coding part because I'm new...thx everyone!

Related

How to automatically import contacts from Google Sheets to Elastic Email base

I would like to connect my Google sheets with Elastic Email base. I have a Google Form, which updates data in Google Sheets. From there I would like to send all new email addresses to my Elastic Email account, how can I achieve this?
Also another question regarding Google Sheets - with script MaillApp.SendEmail I send all form responses to my email. There is a problem, because the sender's email is my private mail, even though the form, sheet and script are on my domain's email. I can add another sender's email in the script, but then it shows both - my personal and domain's email address as senders.
Thank you very much for your help and all the best!
You can build script that will add contact to your account with method Contact/add: http://api.elasticemail.com/public/help#Contact_Add
If you cannot build the scripts you can use integrations hub like Zapier - it should allow you to Add Contact to your Elastic Email account when certain trigger action is met (eg. new row in Google Spreadsheet).

How to see which email address opened my mail?

I am trying to use google analytics to find which email address opened my email. But it looks, google analytics don't have that option.
Do we have any other alternatives?
You certainly can't do that in Google Analytics - it's against their terms of service to collect that sort of personal data. The email client that you use - e.g mailchimp, dotmailer etc may have it.

Google cloud charging me a lot to send a few emails

I have a static Angular site from which I send emails. I set up a node/express email server which simply sends the emails using Gmail. This server is hosted on Google App Engine. I can see that it has sent 82 emails so far - only a few lines long - over two months. I have been billed over €200 for this by App Engine. How is this possible?
I have sent a support request but no response so far. I am just wondering if it could be something I have done.
If you want to lower you'r costs, GCP is suggesting using sendgrid API to send emails. For GCP Projects there is 12k emails free quota/month. You can add sendgrid API, create account and hook up to your project by going into google cloud console -> cloud launcher and typing sendgrid.
https://cloud.google.com/compute/docs/tutorials/sending-mail/using-sendgrid
When you sign up for the google cloud free service they bill you by the instance. However, they give you no control over how many instances are used at any given time. I am/was being billed for two instances on one of my projects despite the fact that it has received a total of 83 requests in the five weeks since it was deployed.
I am waiting for Google to try to explain this to me.

how to send email from a website hosted on s3

I have a website hosted on S3 on amazon web services. I want to receive emails on my gmail account from the visitors of my website if they wish to contact me. I'm confused with the steps for the setup as I tried working around with SES on amazon web service but am completely off tracK I believe.
Thanks.
S3 doesn't support any server-side code, such as PHP - so you can't use server-side logic to send an email.
There are two options:
Implement a mailto: link that will cause the user to open their mail client when then click on it.
Use a third-party mail service that supports a REST API, and implement that in Javascript. You can use something like SES, Sendgrid or Mailgun.
Each of these services can be called using Javascript. Implement your mail form page to make an API call to these services to deliver the comment to your inbox.
You can use AWS Lambda with Amazon API Gateway to create a serverless backend and use Amazon Simple Email Service to send an e-mail. A good tutorial below:
Create Dynamic Contact Forms for S3 Static Websites Using AWS Lambda, Amazon API Gateway, and Amazon SES
Late to the party, but as others have said you can setup a AWS Lambda function at an API Gateway to use AWS SES to send an email. You post your html form to it (or some other service you create on an actual server you control) and send an email via some Gmail SDK/API There's quite a few tutorials for this online.
You can also use a free third-party service like Formspree to create an html form that posts to their servers and they will send you an email to wherever you specify.

Is it possible to send a basic email on firebase that's not reset or change password

I'm just wanting to email a user a basic email like a welcome email.
Is this available on the paying plans?
Yes. :) With Google Cloud Function for Firebase (announced today) this is pretty trivial, example code here.
Nope. Firebase does not provide an open email service.
Update: But you can use Cloud Functions for Firebase to send email easily. In fact, sending a welcome message to new users is one of the examples provided.