ejaboneta Posted July 3, 2009 Share Posted July 3, 2009 Is it possible to be able to send an email to an email address, and have the content of that message show up on a web page? What do I need to look into for this? Link to comment https://forums.phpfreaks.com/topic/164715-mail-to-web-site/ Share on other sites More sharing options...
ldougherty Posted July 3, 2009 Share Posted July 3, 2009 Sure, you just need to specify the email as HTML based and then you can use whatever HTML tags you want. http://php.net/manual/en/function.mail.php Link to comment https://forums.phpfreaks.com/topic/164715-mail-to-web-site/#findComment-868593 Share on other sites More sharing options...
ejaboneta Posted July 4, 2009 Author Share Posted July 4, 2009 What I meant was say I use my normal email to send the email to [email protected]. What I want is to go to mysite.com/mail.php and see the message displayed there on the website. I actually have been googling like crazy and found out about imap functions. But now i have a new problem. I can get the messages but they are displayed with a bunch of extra stuff i dont need. In this message, the body says "hello" --0-497195976-1246665334=:79916 Content-Type: text/plain; charset=us-ascii hello --0-497195976-1246665334=:79916 Content-Type: text/html; charset=us-ascii hello --0-497195976-1246665334=:79916-- code: $content = imap_body($conn, $i); echo $content; Link to comment https://forums.phpfreaks.com/topic/164715-mail-to-web-site/#findComment-868607 Share on other sites More sharing options...
The Eagle Posted July 4, 2009 Share Posted July 4, 2009 You can use the POST methods to save on a web page. Anyways, you may want to look into MySQL databases for recording and holding logged messages. Link to comment https://forums.phpfreaks.com/topic/164715-mail-to-web-site/#findComment-868687 Share on other sites More sharing options...
trq Posted July 4, 2009 Share Posted July 4, 2009 You can use the POST methods to save on a web page. Anyways, you may want to look into MySQL databases for recording and holding logged messages. I fail to see what that has to do with the question at hand. To the op, your going to need to parse the output for the information that you do need. All mail messages have the same format. Link to comment https://forums.phpfreaks.com/topic/164715-mail-to-web-site/#findComment-868692 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.