Jump to content

Mail to web site?


ejaboneta

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.