Forum Moderators: coopster

Message Too Old, No Replies

adding attachments to emails from a form

         

jyogit

7:29 pm on Mar 8, 2008 (gmt 0)

10+ Year Member



i need to be able to add attachments to emmails from a form before i send it.
can it be done?

i can get all the information i need from the form into the email but i also need to be able to use attachments.

please help

whoisgregg

12:31 pm on Mar 10, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello jyogit,

There is information on how to do this in the documentation for the mail function [php.net] (See the note about attachments and the comments).

If you receive an email with an attachment and "View Raw Source" in your email application, you can see how the message is structured. (Compare to an email that doesn't have an attachment to see which parts are different.)