Shuffle / openapi-apps

Swagger/ OpenAPI specifications for security products and services
https://shuffler.io/search
MIT License
73 stars 75 forks source link

AWS SES #42

Open tristandostaler opened 2 years ago

tristandostaler commented 2 years ago

Hello,

The AWS SES app is missing the possibility to use the "reply to" field of an email

frikky commented 2 years ago

Hey @shalin24999, could you have a look at this?

shalin24999 commented 2 years ago

Hey @tristandostaler could you please check 257. Is this what you suggested?

tristandostaler commented 2 years ago

Yes that seems right!

If it's worth anything, the lines 59 to 104 could be simplified without the if, hence reducing the code duplication. The only difference is "text" vs "html". There could be a if before, or a function call with the type. Ex if you want to default to Html: email_type = "Html" if data_option != 'Html': email_type = "Text" response = client.send_email( (...) 'Body': { email_type: {