Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Vic Mercier
Vic Mercier
3,276 Points

How would I sent automatically email like in the treehouse support?

Which technology should I use?

1 Answer

Ivan Penchev
Ivan Penchev
13,833 Points

Long answer short:

You need a back-end language that you would use to write a script with this logic:

 -Check for new emails

     -If new email == true ---> compose_autoreply(), send_autoreply()

         --else run again in 1 hour

The most common implementation is using PHPMailer Other people prefer (for example autoreply plugins) like: https://gist.github.com/Spea/2655802

To sum it up: You have to code a script. There are multiple tutorials how to do it, just google "email autoreply php tutorial"

Alternatively most modern mail servers have it something like that preinstalled, and you can just use that if it's offered. (For example : https://support.google.com/mail/answer/25922?co=GENIE.Platform%3DDesktop&hl=en)