Retrieve Mail-Attachments in LogicApp for Azure Function call - email

I have a use case in which I have a Logic App which triggers as soon a Mail is sent to a particular email address.
This email contains multiple attachments. The Logic App then needs to call an Azure Function and pass the Body of the mail and the attachements to the Azure Function.
Actually I am struggling with getting the email attachements in a way (Array?) which allows me to pass them to the Azure Function for further processing.
Does anybody have some advice for me? I'm not very familiar with Logic Apps, so any help is highly appreciated.

You can directly use HTTP requests to send attachment, The metadata used in the example can be obtained directly in Add dynamic content.
You can refer to Post Multipart/Form-data using Azure Logic Apps.
==================update===========================

Related

What is the best/easiest way to process received email message body and resend it?

I am receiving chart data in JSON format to my email address and my goal is to convert it to chart/chart img and resend it to my email address.
I have been looking for several methods:
Google App script used for gmail. I failed to find trigger on newly received message.
Email client, that supports adding actions based on scripts to new incoming message trigger. Only one I know about is MS Outlook with VBA scripts, but creating chart image with lack of libraries available in VBA is not very elegant solution.
Open source email client with possibility to alter the code and so directly process data and resend message. The more robust email client, the harder is to change the code to do relatively simple job, I believe.
I really donĀ“t know what kind of solution this simple problem needs.
Thank you in advance.
Sounds like you are interested in some kind of gateway on the server side, not client-side. Take a closer look at your server-side implementation. For example, you may start from the Mail flow rules (transport rules) in Exchange Online page.

I have created email in marketing cloud, on submitting email form I want to populate thank you message based on the client language

I have created email in marketing cloud, in email I have Email form, once client fills the details and submits the form I want to populate thank you message based on the client language.
I have created Interactive email page to achieve this, but I'm not able to get URL parameters for language code in interactive email page.
Can anyone please help me with this.
Thanks in Advance!
At this stage, interactive email form doesn't allow you to pass parameters to the cloud page. That's a limitation on the feature. However, I noticed we can access the standard parameters that are generally available within the cloud page using Personalization Strings
%%_SubscriberKey%%
Btw, post for all Salesforce related questions on Salesforce Stack Exchange
https://salesforce.stackexchange.com/

Best implementation to send emails using crons

I have a system which is already using cron to send emails. But i feel it is not a very good implementation, and i want to improve it. This is what i am doing right now:
Saving required 1 line text in database along with receiver's details, and couple of CTA's, and inside the cron i am adding that text in the main body, adding header & footer and sending it to user.
I am planning it to improve like this:
Using blade templates.
Creating different templates for different actions (eg registration, forgot password etc), right now there are no different templates.
As soon as action is triggered, prepare the html email template which is ready to be sent to user, and save it in database.
Use cron, pick the saved html template and send it to user.
I am not sure if this is the right way to do this. Is it fine to save whole html in database? or should i instead save variables in db as json and then use those variables to create the ready to be sent template in cron itself and then send it?
Or should i use some queuing methodology AWS provide to combine it with SES and submit emails to it without storing it in database.
Please suggest the best implementation. Thanks.
You can implement this in the following manner using AWS SES, Lambda & Dynamodb
Configure SES to send email with your domain
When you need to trigger an email, use a Table in DynamoDB to store the email data in JSON format.
Configure Dynamodb streams to trigger a Lambda function upon new mail record creation, which will use SES SDK to send a mail.
To construct the Email body in Lambda function, you can use a template mechanism of your choice (e.g for NodeJS you can use Underscore templating) and bind the JSON data before sending the email.
In this approach mails will be send asynchronously and also make sure you have extended the SES email quotas.

I'm using Amazon S3 and want to create a form that sends out an email when submitted. How can i do this?

So the form i previously created didn't work because my site is hosted in Amazon S3. I just want a simple form that sends an email when the user clicks submit.
ron.capptivation.com/cappdev2
form is at the bottom
Any ideas on how to make this form work and send an email?
You'll need a back-end service to help you send the email.
You can use a Lambda function to send the email, then setup an API gateway to funnel your requests to the Lambda function.
Then in your static website, use Javascript to issue Ajax calls to the API gateway when the form is submitting.
A static site on S3 can't process form submissions so you can't do this with just S3. You could either create your own server process to handle form submissions, possibly on EC2 or Lambda, or you could use a service like Wufoo forms.
The other respondents are correct in that you'll need a back-end service. One popular option is formspree. Another alternative would be posting a form's contents to something like Slack or HipChat using webhooks, such as explained in this blog post.

sendgrid email via X-SMTP

I am trying to figure out how can I make it possible to send an email from my
application to Sendgrid and have it come back.
I want to use coldfusion to send an email using X-SMTP API. I found a documentation
online here but still wondering if there's any documentation available other
than the web API one?
http://thehatrack.net/blog/integrating-sendgrid-with-your-coldfusion-application/
SendGrid's Event Webhook is the only way to get email reads on an individual basis. This will POST an event to your server every time an email is read (among several other events).
The only "pull" based solution to get individual email events from SendGrid is the bounces endpoint, which will tell you when an email bounces (and is certainly not read), but nothing else.
If you want to retrieve individual read events from SendGrid, you'll need to connect the Event Webhook to an external service like Keen.io, and then leveraging their API to get individual events.