Send Email Using AWS SES service With Python AWS Lambda

Поделиться
HTML-код
  • Опубликовано: 15 янв 2022
  • ===================================================================
    1. SUBSCRIBE FOR MORE LEARNING :
    / @cloudquicklabs
    ===================================================================
    2. CLOUD QUICK LABS - CHANNEL MEMBERSHIP FOR MORE BENEFITS :
    / @cloudquicklabs
    ===================================================================
    3. BUY ME A COFFEE AS A TOKEN OF APPRECIATION :
    www.buymeacoffee.com/cloudqui...
    ===================================================================
    This video shows how to use AWS SES (Simple Email Service) with using python boto3 module.
    It shows how to use it from VSCode and from AWS Python Lambda to send email to a valid email inbox (verified at AWS SES Email list).
    :Code Repo: github.com/RekhuGopal/PythonH...
    github.com/RekhuGopal/PythonH...
  • НаукаНаука

Комментарии • 42

  • @tangled55
    @tangled55 3 месяца назад +1

    This was PERFECT. THANK YOU!

    • @cloudquicklabs
      @cloudquicklabs  3 месяца назад +1

      Thank you for watching my videos.
      Glad that it helped you.

  • @shovan3112
    @shovan3112 2 года назад +2

    It is really very details explanation with all the points so clearly covered. Thanks for sharing and keep up the good work. God bless you.

    • @cloudquicklabs
      @cloudquicklabs  2 года назад

      Thank you for amazing word..
      Keep watching and keep learning.

  • @kumargks
    @kumargks Год назад +1

    Very good explanation.. keep it up

    • @cloudquicklabs
      @cloudquicklabs  Год назад

      Thank you for watching my videos.
      And thank you very much for encouraging word, so kind of you.
      Keep watching and keep learning.

  • @armandosepulveda-subto1892
    @armandosepulveda-subto1892 2 года назад +2

    Thank you so much! Just a quick question, I noticed that you set the variable CHARSET but you don't use it. It should be used like the code below, right? Or should we just avoid including it?
    Message={
    'Body': {
    'Html': {
    'Charset': 'UTF-8',
    'Data': BODY_HTML,
    },

    • @cloudquicklabs
      @cloudquicklabs  2 года назад

      Thank you for watching my videos.
      Yes it should be there, as it is syntax and must parameter of SES boto3 API 'send_email'.

  • @vasunurukurthi5624
    @vasunurukurthi5624 2 года назад +1

    Good one 👍

    • @cloudquicklabs
      @cloudquicklabs  2 года назад +1

      Thank you for watching my videos.

    • @vasunurukurthi5624
      @vasunurukurthi5624 2 года назад +1

      @@cloudquicklabs your keeping such a great content to help others.. Thanks for your videos

    • @cloudquicklabs
      @cloudquicklabs  2 года назад +1

      Thank you very much, that was son kind of you. 👏

  • @3ycalkj
    @3ycalkj Год назад +1

    thanks for tutorial. How do you make the email body dynamic based on a query/response for e.g. dynamo db ?

    • @cloudquicklabs
      @cloudquicklabs  Год назад +1

      Thank you for watching my videos.
      Its possible to do it. Once you have response you need to extract the data from that put it in SES body (which will be html format) or you could directly add it in there if you dont care of html formatting. You would be using same file as I mentioned in videos description.

    • @3ycalkj
      @3ycalkj Год назад

      @@cloudquicklabs wow thanks for the quick reply

  • @DC7-official
    @DC7-official Год назад +1

    Thank you for the video but i am facing one issue that i have added lambda stage in code pipeline but lambda stage taking 15min to complete and failing after that saying putjobsuccess is missing but i am receving mail .. not sure how to use it with codepipeline

    • @cloudquicklabs
      @cloudquicklabs  Год назад

      Thank you for watching my videos.
      There should be some issues with your code Pipeline, may I know which tool you are using.
      And I need to know how are coding this to send email, so I can help you.

  • @XuXu-ee1xb
    @XuXu-ee1xb Год назад +1

    Hi How can I call the lambda function in local instead of using aws console? thanks!

    • @cloudquicklabs
      @cloudquicklabs  Год назад

      Thank you for watching my videos.
      There two ways that you can invoke lambda apart from console.
      1. Using AWS CLI.
      2. Using AWS boto3 module boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda.html#Lambda.Client.invoke

  • @cheemsbhaiya2634
    @cheemsbhaiya2634 10 месяцев назад +1

    I'm getting error user is not authorised to perform this action. How I can fix it?

    • @cloudquicklabs
      @cloudquicklabs  10 месяцев назад

      Thank you for watching my videos.
      Please check IAM role permission attached to AWS Lambda. And also check trust has right configurations. Do reffer the documents attached in video description.

  • @ddhananjayrao3296
    @ddhananjayrao3296 2 года назад +1

    Hi how can we change the recipient with API gateway..

    • @cloudquicklabs
      @cloudquicklabs  2 года назад +1

      Thank you for watching my videos.
      Did you get a time check the post on exact requirements medium.com/geekculture/sending-emails-using-aws-ses-lambda-and-api-gateway-ec59f5d5045d

  • @pacoluna7969
    @pacoluna7969 Год назад +1

    Hi! You know how can automate the emails in different hours each day?

    • @cloudquicklabs
      @cloudquicklabs  Год назад

      Thank you for watching my videos.
      Yes we can do that with using Single lambda.

    • @pacoluna7969
      @pacoluna7969 Год назад +1

      @@cloudquicklabs Thanks, I will look into it. I'm trying to send emails to my users when they decide.

    • @cloudquicklabs
      @cloudquicklabs  Год назад

      Thank you for reaching on this, my channel membership is meant to help you if you require, please have a look at it if needed

  • @moonwalkingdancer8369
    @moonwalkingdancer8369 Год назад +1

    Any idea How to send daily reports to user by mail using ses and lamda??

    • @cloudquicklabs
      @cloudquicklabs  Год назад

      Thank you for watching my videos.
      We can do that, please stay tuned I shall create new video on it soon.

  • @user-zx6bd5iz9e
    @user-zx6bd5iz9e 10 месяцев назад +1

    how many emails can you send with this method a day ?

    • @cloudquicklabs
      @cloudquicklabs  10 месяцев назад

      Thank you for watching my videos.
      Limit applies to whatever you have set in service quota service. Please check the same.

  • @nini79812
    @nini79812 Год назад +1

    Is it possible to send it by service bot account?

    • @cloudquicklabs
      @cloudquicklabs  Год назад

      Thank you for watching my videos.
      When you say service bot account do you mean IAM role? Could you please elaborate

    • @nini79812
      @nini79812 Год назад +1

      @@cloudquicklabs yes Iam role ,I have created one policy now how to integrate in my cide

    • @cloudquicklabs
      @cloudquicklabs  Год назад

      Thank you for coming back on this.
      You need to use the same at AWS Lambda to execute SES APIs to send emails.

    • @nini79812
      @nini79812 Год назад +1

      @@cloudquicklabs Thank you but I am running it through a cron job ,so I have defined the ses.send email policy in Iam.yaml file now how to call it in my python script

    • @cloudquicklabs
      @cloudquicklabs  Год назад

      Thank you for watching my videos.
      Looks like you are creating Required IAM role, Lambda, using cloud formation stack.. So for this you need deploy it first.