PDA

View Full Version : Mail() and Attachments


The Ace
05-31-2006, 07:58 AM
Hello all,
I'm trying to figure out the the mail headers and the boundry.

What I need is an email message that has an image within it.
I kinda figured out the attachemnt thingy, but not quite made it to copleate message seince i'm messing up witht he boundarys.
I've realaized that a boundary is some kind of a part dilimiter for the mail reador to split apart between two (or more) types of data, for example image and text/html.

But the problem is that I don't quite get what kind of charcters MUST be infront of the boundry string, and how exactly to use it.

I've opened an email message I've sent with Outlook, and TM trying to figureout whats goin on there, but not realising a lot...
Also i'm reading RFC 2045 (the MIME).

If anyone can direct me to a good source of information (except the boring RFCs), I would welcome any help!

Thanks.

chump2877
05-31-2006, 02:36 PM
rather than figure out how to hard code MIME emails (which is a pain), why not use an existing class desgned to send HTML formatted emails?

For example: http://phpmailer.sourceforge.net/

tutorial: http://phpmailer.sourceforge.net/tutorial.html

you can also try looking for a class here:

http://www.phpclasses.org/ or
http://pear.php.net/search.php?q=MIME&in=packages&x=0&y=0

d11wtq
05-31-2006, 06:38 PM
You might want to have a look at Swift Mailer too:

http://www.swiftmailer.org/