OM2 Posted July 20, 2014 Share Posted July 20, 2014 I want some code to receive email, reformat and then forward to another email address I'm not sure where to start with this Does the application need to be constantly running - monitoring incoming emails? What is involved? I did a search and saw many discussions saying that Google App Engine was available for usage I've no experience of this Just looking for suggestions Thanks OM Quote Link to comment Share on other sites More sharing options...
davidannis Posted July 20, 2014 Share Posted July 20, 2014 Depends on the Operating System that you are using. You can code from scratch (just listen on the SMTP ports) but I have seen programs that allow unix mail to receive the email and just monitor the directories where the mail is kept to process the messages received. I'm sure there are a million ways to accomplish the task and the best way probably depends on the volume, how critical that you be up, what OS you use, how portable you want the code to be, etc. Quote Link to comment Share on other sites More sharing options...
davidannis Posted July 20, 2014 Share Posted July 20, 2014 Take a look at these: http://www.phpshare.org/articles/Piping-Incoming-Mail-with-PHP http://www.phpclasses.org/blog/package/2/post/1-Process-incoming-email-messages-using-PHP.html Quote Link to comment Share on other sites More sharing options...
fastsol Posted July 20, 2014 Share Posted July 20, 2014 You could maybe do something like email piping. I have never actually done it, but basically any email sent to a specified address will be sent to a php script and you can then process the contents as you want. I have not watched these videos but maybe see if they address your issue appropriately https://www.youtube.com/results?search_query=php+email+piping Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.