FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » CLP - ON TOPIC! - Need PHP form email help, Please!
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: CLP - ON TOPIC! - Need PHP form email help, Please! [message #173138 is a reply to message #173137] Wed, 23 March 2011 19:48 Go to previous messageGo to previous message
Tim Streater is currently offline  Tim Streater
Messages: 328
Registered: September 2010
Karma:
Senior Member
In article <imdh2i$v5v$1(at)news(dot)albasani(dot)net>,
The Natural Philosopher <tnp(at)invalid(dot)invalid> wrote:

> Tim Streater wrote:

>> Yes, and you'll have to learn how an e-mail is structured. Try looking
>> at these RFCs:
>>
>> RFC 5322 (Internet Message Format), and RFCs 2045, 2046, 2047, 2048,
>> 2049, (MIME), and 2183. You'll need to find which bits you need for your
>> particular situation.

>> This is an email "part", encoded in base-64. Why is it thus encoded -
>> who is doing that?
>>
> His email client. I recommended he should disassemble it and reverse
> engineer it, because that is what I did.

Hmm, perhaps I came late to this thread. I thought he had a web page
which when submitted caused a PHP script to run that created the e-mail.
Hence my question.

> Look the code I posted should work or at least work near enough to
> puzzle the thing out. I only went as far as getting something that works
> for me BUT the basic message format for embedded images is this:
>
> Create OR they can reference inline embedded stuff: there is a special
> format for that. src="cid:...."
>
> Then you have to set up the mail headers to reflect the fact this is
> multipart mime encoded HTML and that certain bits will be base 64 encoded,.
>
> Then you have to create the message with separators, parts and where
> appropriate base 64 encoding.

Yeah yeah I know all this. I have written an email client myself so had
to research all this stuff, including wading through the RFCs I listed
above.

I'm trying to hint to the OP that there aren't any shortcuts. As Jerry
said, figure out what you want to do, first, then research and assemble
the components you need. Coding comes last.

--
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ip address of client
Next Topic: Islandnet.com dropping support for PHP4
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 21:38:38 GMT 2024

Total time taken to generate the page: 0.05666 seconds