Page 1 of 1

Email form with file attachment

Posted: Sun Jul 03, 2011 9:50 am
by nyo
Hi,

I have been searching about how to make an email form with file attachment, for example images, but I couldn't find nice tutorials on the web. Maybe you could do one.

Thanks.

Re: Email form with file attachment

Posted: Sun Jul 03, 2011 11:49 am
by Torniquet
I personally haven't done any sending emails with attachments.

But a quick google search produced this
http://www.texelate.co.uk/blog/send-ema ... -with-php/

and

http://www.webcheatsheet.com/PHP/send_e ... chment.php

both give the code to do it and seeing what is happening is pretty straight forward.

{google search - php add attachment to email}
{google link to that search - http://www.google.co.uk/search?rlz=1C1A ... t+to+email}

Re: Email form with file attachment

Posted: Sun Jul 03, 2011 3:58 pm
by jacek
It is basically just using the mail function , the problem is that you have to set some headers and format the body in a specific way which is not that obvious.

I could probably do this if a few people would be interested.

Re: Email form with file attachment

Posted: Sun Jul 03, 2011 4:08 pm
by nyo
jacek wrote:It is basically just using the mail function , the problem is that you have to set some headers and format the body in a specific way which is not that obvious.

I could probably do this if a few people would be interested.
I hope they do as I believe this would be a nice tutorial for all PHP beginners. If you do the tutorial, could you please also include attaching images?

And thanks for the links Jacek.

Re: Email form with file attachment

Posted: Sun Jul 03, 2011 5:55 pm
by JelvinJS7
jacek wrote:I could probably do this if a few people would be interested.
I would also like one please! 8) (<-- beady eyes)

Re: Email form with file attachment

Posted: Wed Jul 06, 2011 9:56 am
by conradk
+1. That would be a good tutorial ID (hum, idea) :P

Re: Email form with file attachment

Posted: Wed Jul 06, 2011 12:01 pm
by jacek
Okay, this seems popular, I will do this one next.

Re: Email form with file attachment

Posted: Wed Jul 06, 2011 1:13 pm
by conradk
jacek wrote:Okay, this seems popular, I will do this one next.
:P