Click here to Skip to main content
15,912,400 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi code project members!
I need to use function Net_IMAP::appendMessage($rfc_message).
Could you tell me what is rfc_message? and how to get it?

Thanks!
Posted

According to the PEAR document on Net_IMAP[^], this argument is a string, in RFC822 format.

It ALWAYS helps to RTFM first.

Peter
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 15-Nov-11 0:30am    
Sure, a 5. I credited your post in my solution and added the reference to RTFM, please see, pretty good one :-).
--SA
I think this variable is called $rfc_message because it refers to the IETF () standard RCF 2076 — one of the standards for e-mails, in this case the headers in e-mail message.

See http://www.faqs.org/rfcs/rfc2076.html[^];
this is the original:
http://www.ietf.org/rfc/rfc2076.txt[^].

It also possible that the implied format is RFC 822, see http://www.ietf.org/rfc/rfc822.txt[^].

See the references to RFCs in PHP documentation on IMAP functions: http://php.net/manual/en/ref.imap.php[^].

Find code a sample here: http://www.php.net/manual/en/function.imap-append.php[^].

How to get message? You have to compose it yourself according the standards. This is essentially a raw e-mail package, the body of the message with all the headers (and parts with separate block of headers per each part for multi-part messages), all content which is normally can be saved as *.EML file by programs like Outlook Express.

As Peter correctly points out, It ALWAYS helps to RTFM first:
Microsoft Q209354.

—SA
 
Share this answer
 
v5
Comments
Peter_in_2780 15-Nov-11 0:51am    
Love the last link. Bookmarked for future use. Thanks!

P

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900