How to transform a HTTP POST to an email? - email

I use a mail service which can send HTTP POST requests to a URL with information about failed messages. What I would really like is to get an email about any failed messages.
Are there websites (URLs) that can accept HTTP POST requests and translate them into emails? Or other reasonable easy to implement solutions to convert the mail service's HTTP POSTs into email notifications?
[This is just for my own personal 1-user use; so I don't need a solution that scales well or is able to process vast numbers of HTTP POST requests or anything of that sort.]

An easy way would be to use PHP to read the POST with
$_POST["yourPostedStuffHere"];
and send the data via mail with
mail(to,subject,message,headers,parameters);
See http://www.w3schools.com/php/php_forms.asp and http://www.w3schools.com/php/func_mail_mail.asp
It's not very beautiful, but for personal use it would work.

To answer your question, the web / integration service Zapier can accept incoming webhooks to trigger emails i believe.
They offer services to interconnect several different apps, including sending/receiving webhooks, as well as emails.

Related

Send DKIM - signed emails through third-party email service provider API?

This question is a follow-up question to this one.
The problem is that my current E-Mail provider does not natively support DKIM-signing, but I need that DKIM feature to make certain API integrations regarding my emails (like sending emails from my payment service provider through my own domain).
The solution I'm starting to see, as long as my host does not DKIM-sign their outgoing emails, is to watch out for an email providing service that allows you to send emails in the name of your own domain including the DKIM-signature feature. Does such a service exist, via API call? I've no experience whatsoever in this area, and would be happy to know if such a setup potentially has a bad influence on delivery rates / other problems.
If the mail server signs using your domain and not theirs, and you post the matching public key in your DNS, it will all work fine. You do need to find a provider that lets you do that though, which they may do via CNAME records. Such services will often allow you to configure what the mail server does with your messages using additional params in an HTTP API, or via custom headers over SMTP, e.g. it might allow you to set a header like:
Sign-with-selector: myselector
Recommendations for services are off-limits for SO though.

What kind of requests do e-mail clients send when retrieving e-mails?

I am working on an IMAP implementation using AWS API gateways in which I have to retrieve e-mails from a S3-bucket and get them into an e-mail client somehow, but I've not been able to find which requests those clients send when you try to retrieve e-mails from another source. My guess is GET-requests, but I'm honestly not even sure if it's REST-requests that are being sent. Does anyone have an idea?
Thanks in advance!

What email list-send services allow suppression based on reply content?

I'm looking at a variety of mailing services, Mailgun, Amazon SES, SendGrid. Does any one of those services have a way to automatically suppress based on the content of a reply email?
Usually it is customary to use an unsubscribe button, but occasionally a user will reply instead - is there any good documentation or service out there which will parse the title and body of the email for the word unsubscribe - and then automatically blacklist that email?
Thanks!
I don't think this is a widely supported use-case anymore, and I don't know of any services that handle that.
With SendGrid, it'd be pretty straightforward to add this functionality, between the Parse Webhook & the API Unsubscribes.add call.

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.

SendGrid email read confirmation

I want to collect information about how many emails that I have sent, has been read. I want to use method where I will put image in email and once the image gets rendered I can catch that event. I know this is not hundred percent reliable.
I am using a SendGrid for sending my emails. I was wondering does SendGrid provides service like this?
I was looking through SendGrid documentation but was not able to find what I need.
You want to use the Open Tracking app. You can also enable, disable, and configure this app via the web API or SMTP API headers.