We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Get full email

hrolsons
hrolsons asked
on
Medium Priority
296 Views
Last Modified: 2012-05-07
What php code could I use to connect to a mail server and get the entire raw email?
Comment
Watch Question

Top Expert 2008
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
I didn't think that was working, because I knew that the From should look like this:

From: "XYZ Inc."<vip@xyz.com>

But all that showed up was "XYZ Inc.".  Then I finally figured out that the "<" and ">" on the email address was causing the page to be confused because it thought it was html.

Thanks.


Top Expert 2008

Commented:
Yes, use htmlentities() when you need to output this on a html page.
Top Expert 2008

Commented:
Something like this:
echo '<pre>'.htmlentities($msg).'</pre>';

Open in new window

Loganathan NatarajanLAMP Developer
CERTIFIED EXPERT

Commented:
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.