I have actually done several projects with different kinds or e-mailing
features.
In a nutshell, you need the appropriate MIME headers for the type of mail,
and sections of body divided by MIME Boundaries. (You also need to encode
any files you are sending as attachments. Check the base64_encode function
at php.net for this)
RFC1341 and the revised version: RFC1521 give you all the specifics you need
to do this in almost any situation.
I would suggest skimming through 1521, paying special attention to the
section on
Multipart/Mixed (as that is what you would usually use for an e-mail with
attachments)
I would also suggest sending yourself a couple of e-mails with attachments,
and then
telneting to your mail server and viewing them there. Doing this has
probably helped
more more than anything when working on a complex mail program. Don't
reinvent
the wheel, see how the other guys made theirs =P
If you have any specific questions let me know.
Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com
----- Original Message -----
From: WNLeong <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, August 10, 2001 2:55 AM
Subject: RE: [PHP-DB] Attachment
>
> Can you explain more to me about RFC1341? Please tell me where can I get
> more info about this function?
>
> Actually what I want is to send a mail with a list of attachment files.
>
> Thanks.
>
>
> > -----Original Message-----
> > From: Patrice Garbe [SMTP:[EMAIL PROTECTED]]
> > Sent: Thursday, August 09, 2001 7:42 PM
> > To: WNLeong
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP-DB] Attachment
> >
> > You must look at the RFC1341 (if you have not already did so) to learn
> > about
> > mime types. It is also very useful to send (you) messages with attached
> > files
> > and the look at the source.
> >
> > A tip : to send you own forged mail you must use the mail() function
like
> > this :
> > maiil($to,$subject,"",$your_forged_content);
> >
> > If you don't want to develop your own solution look at
www.freshmeat.net,
> > I'm
> > sure you will find something.
> >
> > That's it !
> >
> > Patrice
> >
> > Le jeu, 09 aoû 2001, vous avez écrit :
> > > I would like to send attachment file through mail by using php.
Please
> > > help me.!!
> > >
> > > Thanks.
> > >
> > >
> > >
> > >
> > > Wen Ni Leong
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]