INNER CODE UNIT · Python

lambda_handler

ydamni/cloud-is-free · projects/project-2/resources/email/email.py:5

def lambda_handler(event, context):
    ses.send_email(
        Source='cif-source@yopmail.com',
        Destination={
            'ToAddresses': [
                event['destinationEmail'],
            ]
        },
        Message={
            'Subject': {
                'Data': 'Cloudisfree - Project 2'
            },
            'Body': {
                'Text': {
                    'Data': event['message']
                }
            }
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…