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

WordPress

David Jarrin
PLUS
David Jarrin
Courses Plus Student 11,182 Points

Ideas wanted! Can Wordpress accept emails and process them

So I was wondering, is it possible for a person to send an email to a wordpress site (wordpress@your_site.com), have wordpress accept and process the email then do something with it? Is this with in wordpress's ability or am I asking too much from it?

4 Answers

Yes they can and here is a plugin for email subscribers to your site:

https://wordpress.org/plugins/email-subscribers/

I hope this helps.

The best way to look for something I think would be to look for WP plugins first, if you don't find one that works well, then create your own.

David Jarrin
PLUS
David Jarrin
Courses Plus Student 11,182 Points

Well this has the optin option but I was thinking of something sort of like zendesk where someone fills out a form on wordpress, wordpress sends an email, the person who receives the email can hit reply (the reply would be to wordpress@your_site.com) then wordpress receives the email and performs some other action. If this is indeed in that plugin I apologize.

I don't think that would be the correct plugin for you but, I would suggest you search for a plugin that fits your needs. Also I'm not sure about the process you are looking for, is it:

  1. user fills out form on website
  2. user sends data from form to database.
  3. email is created using data from form
  4. email is sent to new user
  5. new user can replay to email by using email address: (wordpress@your_site.com)
  6. after replay WP stores data from email in a database.

are theses the things you are looking to achieve? if not let me know.

You can go here and search for what you are looking for. If you can't find I would suggest building the plugin.

https://wordpress.org/plugins/

David Jarrin
PLUS
David Jarrin
Courses Plus Student 11,182 Points

Yea all of those sound appropriate, the idea is for a type of ticketing system so basically what would be happening is: someone fills out a form

-> wordpress sends an email to the admin, along with storing data from the ticket ->the admin assigns the task to someone (this is also stored in the DB)

->the person assigned to the ticket receives an email

->if the person who was assigned the ticket so chooses they can respond the email then there response would be tracked and re-routed to the admin and the person who put the request in

I definitely think I would have to build the plugin, just was wondering if you send an email to wordpress@your_site.com if wordpress could receive the email and do something (with the help of the plugin of course).

I hear yeah, So a ticket support platform. take a look at this:

https://wordpress.org/plugins/wp-support-plus-responsive-ticket-system/

this might help. To answer your question, yes WP can do something that you want. If its not available you should just create it by using PHP.

David Jarrin
PLUS
David Jarrin
Courses Plus Student 11,182 Points

Thank you, this is more or less what I was looking for!

Awesome, yeah when you fleshed out the idea I figured this is what you were looking for. I hope it helps.