email,http,webhooks,mailgun , How to forward incoming mail to an HTTP endpoint?


How to forward incoming mail to an HTTP endpoint?

Question:

Tag: email,http,webhooks,mailgun

I would like to programmatically receive e-mails without the hassle of handling standard mail protocols (SMTP).

Is it possible to set a Mailgun route to forward (POST) all mail to an HTTP(S) endpoint? Currently, it seems to me that the provided webhooks can only notify you, rather than POST an entire email.


Answer:

The Mailgun Routes API will notify you, and also provide a URL where you can download the full email content.

If that is not sufficient, you might want to look at SendGrid or Mandrill. I believe Mandrill POSTs the entire email data in their webhook.


Related:


How to return value in Meteor.JS from HTTP.call “GET”


javascript,ajax,http,meteor,facebook-javascript-sdk
I'm writing a meteor method, which should return a Facebook response for HTTP.call on graph api, but HTTP.call has only a callback function to show error/response, so I can't take this data outside, and Method can not return any value. Here's my method code: loadUserFBEvents: function () { var accessToken...

semicolon separated email validation in javascript only [duplicate]


javascript,regex,email
This question already has an answer here: Using a regular expression to validate an email address 65 answers I know there are so many repeated questions in stack but i didn't found any help, so please help me. Email should be like this, "[email protected];[email protected]; [email protected] ; [email protected] ;[email protected];" I...

Sending email using smtplib doesn't work anymore


python,email,smtplib
So yesterday I had this bit of code written out and it worked perfectly fine, but today it's not sending e-mails anymore. Can someone explain why? import smtplib SERVER = 'owa.server.com' FROM = '[email protected]' TO = ['[email protected]', '[email protected]'] name = 'Mr. Man' SUBJECT = 'Recent Information for: %s' % (name)...

Custom HTTP Header or cookies? how custom authentication/authorization helps in CSRF?


javascript,http,cors,csrf
If someone can help me understand how a custom HTTP authorization header helps protect CSRF attack. Also correct me if i'm wrong does it prevent replay attacks using fiddler also? Thanks for your help in advance...

Server initiated requests


http,go,http2
I know that http is a request-response protocol, the problem in short is a client makes a request to the server to start a long running process, and i want to inform the client over the progress with a simple json message containg progress info. in http1 i know that...

Symfony2 service unable to find template


php,email,symfony2,templates,twig
I've just pulled an all-nighter trying to get this to work, and I'm probably missing something foolish, but help me out. I have a symfony2 service which sends emails. I have injected the @templating service into my service's constructor like so: services.yml order_service: class: AppBundle\Services\OrderService arguments: [ "@doctrine.orm.entity_manager", "@mailer", "@templating"...

ASP.net MVC HTTP Request error with payload


asp.net,json,asp.net-mvc,http
I am creating an ASP.net MVC website with a RESTful API to a SQL database. I have implemented a controller which holds the HTTP commands. One of the commands is a POSTcommand: // POST: api/PoolTests [ResponseType(typeof(PoolTest))] public IHttpActionResult PostPoolTest(PoolTest poolTest) { if (!ModelState.IsValid) { return BadRequest(ModelState); } db.PoolTests.Add(poolTest); db.SaveChanges(); return...

Plain text emails displayed as attachment on some email clients


perl,email,attachment,mime,plaintext
The email can be viewed normally using some email clients (Evolution, Thunderbird), but with other clients (e.g., GMX) the body of the message remains empty and an attachment containing the body of the message is sent. I would like to know how I can prevent this from happening, since the...

Collapsing table cells in media query for emailing


html,css,email,responsive-design
I had to create an emailing html and I can say it is definitely a hard thing to do. Now, making sure it is responsive is beyond obnoxious. I'm stuck right now on a seemingly unsolvable problem. Here is the problem : I have a table with 3 columns (column...

How do I use VB.NET to send an email from an Outlook account?


vb.net,email
I'm trying to send an email via an outlook email account through a vb.net program. When I run the code I get an error telling me that I don't have a secure connection. I've been searching online and have tried all the adjustments I've found but I'm still not having...

Which Http error/status code is the appropriate?


javascript,http
I've carefully read all HTTP error/status codes, still not clear which is the appropriate to return in the following scenario: The request is an Ajax request, so the handling of the error situation depends on the client javascript code, preferably it will give a notification. At server side an unexpected...

How do I send an email of the current page using a button?


javascript,php,html,email,xampp
I am trying to send an email of my html page. This is the code I have so far: <script language="javascript"> function emailCurrentPage() { window.location.href = "mailto:?subject=" + document.title + "&body=" + encodeURI(document.location); } </script> <button onclick="emailCurrentPage()">Email page</button> Which sends the link of the current page but I want the...

Timeout handle email php


php,email,redirect,location,sleep
I would like to redirect my user to a new page, but the current site continues to run a script that sends a threaded message 10 minutes later at a specified address. I tried something like this: Header('Location: xy.com'); sleep(100); do_the_email_sending_here(); But actually it doesn't worked,because the site waited for...

How to exclude guest users from getting emailed Rails 4 Devise


ruby-on-rails,email,ruby-on-rails-4,devise,mailer
Just set up my first mailer on Rails 4. I have a welcome email sent to new users as soon as they sign up (create) for a new account using devise. I also have devise set up so that if a current_user is not found, a guest user will be...

Android URL connection java.io.FileNotFoundException


java,android,email,httprequest,bufferedreader
I try to send a normal Http Request to a WordlPress Website. This is the URL: "http://localhost.com/api/submit_comment/?post_id=12345&name=Max&[email protected]&content=hallo" If I open this with my Web-Browser all works fine. If I open it over this over an Android App it throws a java.io.FileNotFoundException. The Android Code: class SendComment extends AsyncTask<String, Void, String>...

PHPMailer not sending e-mail through Gmail, returns blank page


php,email,gmail,phpmailer,send
I am trying to set up a contact form at the bottom of my page. I am using PHPMailer and trying to receive emails at my gmail account. Every time I submit the form, my url changes to url/email.php and I get a blank page. What am I doing wrong?...

Integrating PHP Curl


php,mysql,xml,http,php-curl
I have the code below which calls up an MySQLi and presents it in XML form in my browser. The next stage is that instead of presenting it in my browser I want to send it to another IP address using PHP Curl. Please can someone help me with the...

JavaMail MimeMessage.getContent unsupported encoding


email,encoding,javamail
I´m having a problem with parsing some type of mail encoding with charset=t.101-g2 I´m using JavaMail in Grails directly using the lib, getting the unread emails from IMAP, and for each message try to get the content with Object msgContent = msg.getContent() And that line is throwing the error. The...

How to send a mail by postfix mail server with rails?


ruby-on-rails,email,mailer
On my local host, I followed this article made a mail server and it works well. https://www.digitalocean.com/community/tutorials/how-to-install-postfix-on-centos-6 I want to develop a mailer feature with rails framework. Here are my settings: # mailer config.action_mailer.default_url_options = { :host => 'example.com' } config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { address: 'localhost', port: 25,...

Sending mail by Unauthorised sender in Google AppEngine


python,google-app-engine,email,sendmail
I've got a Google AppEngine Python application connected with my domain. I want to be able to send emails from any email, like: [email protected] So I use sendmail() and set mailobject.sender = "[email protected]", but it does not work. Also I made a receive function, but I don't want to receive...

Which LiftResponse class is appropriate for returning an XML based file format?


xml,http,lift
I have a Lift application which generates a Gephi file on the fly. The Gehpi native format is XML based. The current plan is that the file gets downloaded and opened in Gephi on the client, without being processed/displayed in the browser. I looked through the LiftResponse subclasses and it...

Can I submit a form with google's recaptcha in it from my app?


http,request,authorization,captcha,recaptcha
I'm writing an app which involves letting users to share comments on a website, which has a comment form with Google's reCAPTCHA embeded. I would like to load this page via HTTP and display CAPTCHA within my app, so that user can post comments from my app. Is it easy...

Outlook VBA - set sentonbehalf and Refresh ActiveInspector


vba,email,outlook,outlook-vba
I frequently want to change the sender data in the currently open Mail This is well done by following code: Sub AktiveMailSetVonHotline() Dim oMail As Outlook.MailItem Set oMail = ActiveInspector.CurrentItem oMail.SentOnBehalfOfName = "[email protected]" End Sub` Only question / disadvantage is: After running that macro I can not see that the...

ASP.net HTTP Post when auto-incrementing row Id


sql,asp.net,asp.net-mvc,http
I am working in ASP.net with a Web API allowing HTTP Posts to update a mapped SQL database. I want the Id to be automatically increment by one every time a new row is inserted. The table definition is this: CREATE TABLE [dbo].[PoolTests] ( [Id] INT IDENTITY (1, 1), [SiteID]...

Send email with body consisting of objects


email,powershell,foreach
I am trying to write a script to search through AD and look for any stale computers and then sends an email to me. However, there are 3 requirements: get the lastlogondate for any pc that is older than 90 days once I get that list, I do a ping...

Mail with html content shows break lines or ignores newlines


email,templates,go,mandrill
I am sending mail to users via mandrill and I using both smtp and mandrill api to send. Content of the mail is rendered go template (.tpl) When I put template like Hi {{.name}}, <br/> This is support. <br/> it sends via mandrill api ok, but is visible when I...

SMTP Sendmail With PEAR not using formating from database


php,mysql,email
I am using PEAR to send an email with smtp authentication. Currently i store the email with formatting in a database and then send it out from there. The email is sending perfectly. But the email body is not being formatted. instead it is taking whatever is in the database...

How to create the get method for the call


php,arrays,json,http,quickblox
I am studying and implementing an api and while following the examples, Here is the example 1 : curl -X POST \ -H "Content-Type: application/json" \ -H "QuickBlox-REST-API-Version: 0.1.0" \ -d '{"application_id": "2", "auth_key": "DtF9cZPqTF8Wy9Q", "timestamp": "1333630580", "nonce": "1340569516", "signature": "13293a5bd2026b957ebbb36c89d9649aae9e5503", "user": {"login": "injoit", "password": "injoit"}}' \ https://api.quickblox.com/session.json For the...

$http headers is not a function - angularjs


php,angularjs,http
I am posting data to Dynamics CRM via SOAP on my PHP server with cURL. After this is done it is giving the entity GUID in the form of a HTTP Response header. When attempting to access this via my angular factory and $http. My header is exposed and is...

Laravel 4.2 Sending email error


php,email,laravel,laravel-4
Hello everyone I have an error in laravel when I am sending an email. I have a form with a select tag and when I select the user and click submit I need to send him a mail after I select it. Here is my Controller method: public function store()...

Python exception for HTTP response codes


python,http,exception
I'd like to raise a Python-standard exception when an HTTP response code from querying an API is not 200, but what specific exception should I use? For now I raise an OSError: if response.status_code != 200: raise OSError("Response " + str(response.status_code) + ": " + response.content) I'm aware of the...

How do you unblock the 993 port if your firewall settings is blocking it?


php,email,ssl
I am trying to retrieve my emails from Gmail using php. for writing the host name, this is my code: $hostname = '{imap.gmail.com:993/imap/ssl}INBOX'; I am getting this error: Warning: imap_open(): Couldn't open stream {imap.gmail.com:993/imap/ssl}INBOX in /home1/mtc/public_html/mtcerp/emailparser/email.php on line 10 Cannot connect to Gmail: Can not authenticate to IMAP server: [CLOSED]...

Codeigniter PHP Mailer, Sender Info


php,email,codeigniter-2,phpmailer,contact-form
I'm using Codeigniter PHP Mailer which is hosted here: https://github.com/ivantcholakov/codeigniter-phpmailer/ and with gmail smtp it works flawless. However,using it for a standard contact form, when visitors use that contact form and send us an email, they basically send mails from our mail address to our another mail addess. When they...

Accessing shared outlook inbox in python


python,email,outlook
I have a shared inbox in outlook and I want to write some code that would get me the emails from the shared inbox. Right now I can get the emails from my main inbox, but I want to do it for another inbox. This is the code so far:...

AngularJS $http request using forEach inside of Controller


angularjs,http,foreach
http://codepen.io/rcidaleassumpo/pen/eNEjGY?editors=001 That's the link for the code. Below I first used the forEach to combine the nicknames with the base link, so I could get the fullLink to make the call for with the $http. But then when I tried to make the call, and post into a empty array,...

php form mail function


php,email,variables,concatenation
I am using a mail function to mail it to my email adress, but i want it to send me a message with variables in it. (I have tried to concatenate it with concatenation point, but it doesn't seem to work, or I did not use it right) The code:...

Purpose of Pseudo/Colon Header Fields


http,networking,http-headers,protocols,http2
As the title suggests, I'm looking for some information on the purpose of pseudo/colon header fields, i.e. I want to know why we have a second type of header field... Also - I know pseudo/colon header fields are used in http2 in place of the message and status lines (^^^the...

IMAP migration and changes to folder structure


email,imap,dovecot
I am using imapcopy on a ubuntu 14.04 server and telnet to migrate and respectively edit heavy imap inboxes accounts. I would like to flatten the folder structure, meaning that I want to select and copy all emails from all children folders into one "Import" folder. I cant seem to...

Piping echo into sendmail in rc.local fails


linux,shell,email,sendmail,boot
I'm trying to get my system to send me an email when the system boots. Using the following command works as intended: echo -e "TO:[email protected] \nSUBJECT:System Booted \n\nBeware I live! \n"$1 | sendmail -t -vs But if I add it to rc.local like so: #!/bin/sh -e # # rc.local #...

Handling POST request via Socket in Java


java,sockets,http,post,request
I'm trying to handle a simple POST Request in Java using a Socket. I can receive the request header and answer the request without any problem, but I certainly can not get the body of the request. I read somewhere that I'd need to open a second InputStream to achive...

In simple RESTful design, does PATCH imply mapping to CRUD's (ORM's) “update” and PUT to “destroy”+“create” (to replace a resource)?


database,rest,http,orm,crud
I'm trying to create a simple REST API and map it to CRUD. I have an ORM (DataMapper) which has methods like create, update and destroy. If I get it right, given a resource {a:'foo',b:'bar',c:'baz'}, performing a PUT {b:'qux'} is supposed to replace the resource and result in the same...

nodejs head request isn't triggering events


node.js,http
Here's my code: var http = require('http'); var req = http.request( { host: 'example.com', method: 'HEAD', path: '/' }, function(res){ res.on('end',function(){ console.log('Ended'); }); res.on('finish',function(){ console.log('Finished'); }); res.on('close',function(){ console.log('Closed'); }); } ); req.end(); Strange thing about it is that it doesn't print anything. Takes longer than expected and exits. Is this...

Does Ruby support nonblocking HTTP requests without a third-party library?


ruby,http,asynchronous,gem,eventmachine
I am writing an API to access resources on one of my servers. Part of this API will make HTTP requests. In the name of good software design, I don't want my API to be blocking. I am fairly new to Ruby, but in Java I would provide an Asynchronous...

PHP - how to send e-mail after successful file upload? [duplicate]


php,email,file-upload
This question already has an answer here: PHP mail form doesn't complete sending e-mail 10 answers I need a PHP to send an email if a file was uploaded successfully. My code is working fine like this: <?php $target_dir = "gallery-sys/"; $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); $uploadOk = 1;...

Docker container http requests limit


http,elasticsearch,docker
I'm new to Docker so, most likely, I'm missing something. I'm running a container with Elasticsearch, using this image. I'm able to setup everyhing correctly. After that I was a using a script developed by a collegue in order to insert some data, basically querying a MySQL database and making...

Why I got so many connection events on Node's HTTP server?


javascript,node.js,http,websocket,socket.io
I have a web application using socket.io. It runs on localhost:8000 on my local machine. In order to find an annoying resource leak in my application, I tried to log out the connection events on my HTTP server: server.on('connection', function(conn) { //log out connection details }); When I open the...

Django doesn't parse a custom http accept header


python,django,http,django-views,django-rest-framework
Is there any way to allow Django app to accept the custom accept header like "application/vdn.name.v1+json"? I keep getting a response like this Could not satisfy the request Accept header. I am using Django Rest Framework as well...

How to log in user to my web application when he click on some link in his email


php,mysql,email,login,yii2
Every day I need to send emails to my users with links for articles that they may be interested in on my news site. Example of link: <a href="http://example.com/article/5/some-seo-title>title of article </a> I am keeping data about users in my user table: id, username, email ... When user clicks some...

Automatically export incoming emails from Outlook to existing Google spreadsheet [closed]


email,outlook,google-spreadsheet,export
Is it possible at all to automatically export incoming emails from Outlook to existing Google spreadsheet (and be able to edit the spreadsheet, insert new data)? If it is so, where would you start? We want to manage our inbox this way and keep track of assignments. Thank you!...

How to add image slider in email newsletter?


javascript,jquery,html,email,newsletter
I have been created email newsletter using mailchimp Now i want to add image slider with responsive design, But i have been searched lot online.. Some online docs says can't able to add image slider in email newsletter. For example this link told., its impossible. So, may i know, what...