LebGeeks

A community for technology geeks in Lebanon.

You are not logged in.

#1 November 21 2014

nosense
Member

email auto reply

Hello
I am wondering if this is possible as I never thought about it

Can I set up a server that auto replies emails with a specific attachment as requested

Example:

Sent Email:
Please send me file xyz.pdf

Auto Reply email
attachment: xyz.pdf

Last edited by nosense (November 21 2014)

Offline

#2 November 22 2014

Johnaudi
Member

Re: email auto reply

Well, I'm not really good at server-side programming, but aren't there actually an auto-reply system already built-in specific domains like Gmail and Live etc...?

I think it was called On-Holiday mail or so, check the options up, must be hiding somewhere there.

Offline

#3 November 22 2014

nosense
Member

Re: email auto reply

Thanks for your reply @Johnaudi but perhaps I didn't make the example more clear, I want the reply to be dynamic, it's not the same file sent everytime.

if the Sent Email is : Please send me file abc.pdf then the Reply Email will be abc.pdf not xyz.pdf

basically talking programming in java I would break that string and search for the file name (maybe make the sent email the same every time but with another file name so it would be easy to extract the file name out)
then I would search for that file in my database and send it via email.

but I don't know how is this possible to implement on an email server maybe

Offline

#4 November 22 2014

samer
Admin

Re: email auto reply

A quick solution would be to use Mandrill or another "email as a service" provider that allows inbound emails. Use this tutorial to set up inbound emails using mandrill: http://help.mandrill.com/entries/216993 … g-Overview

Once set up, you'll be able to send a POST request (that contains the filename you would like to download) to a script hosted on your server. The script then emails you the file using mutt or other CLI email client.

Offline

#5 November 22 2014

nosense
Member

Re: email auto reply

samer wrote:

A quick solution would be to use Mandrill or another "email as a service" provider that allows inbound emails. Use this tutorial to set up inbound emails using mandrill: http://help.mandrill.com/entries/216993 … g-Overview

Once set up, you'll be able to send a POST request (that contains the filename you would like to download) to a script hosted on your server. The script then emails you the file using mutt or other CLI email client.

Thanks samer , awesome as always ! , I searched a bit after you gave the info needed and I came across this http://www.email2http.net/

How it works

Step 1

Register a few details with us, we'll send you a quick email and you can activate your account.

Step 2

Login to your new account and configure your first email prefix and target. Select the method (POST or GET) you want us to use to forward the email to your script. Select the type of email body you require (HTML, TEXT, RAW). Choose any replacement variables for all parts of the email.

Step 3

That's it. Now whenever an email is received at your email prefix we'll forward it to the script you specified via the method your specified. Simple as that.

Offline

Board footer