Email form with file attachment

Got an idea for a tutorial ? Share it here.
Post Reply
nyo
Posts: 124
Joined: Mon May 09, 2011 1:55 pm
Location: Mobile

Email form with file attachment

Post 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.
Torniquet
Posts: 52
Joined: Sun Jun 19, 2011 8:10 am
Contact:

Re: Email form with file attachment

Post 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}
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Email form with file attachment

Post 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.
Image
nyo
Posts: 124
Joined: Mon May 09, 2011 1:55 pm
Location: Mobile

Re: Email form with file attachment

Post 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.
JelvinJS7
Posts: 341
Joined: Thu May 12, 2011 8:40 pm

Re: Email form with file attachment

Post 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)
conradk
Posts: 117
Joined: Tue Jul 05, 2011 10:41 pm

Re: Email form with file attachment

Post by conradk »

+1. That would be a good tutorial ID (hum, idea) :P
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Email form with file attachment

Post by jacek »

Okay, this seems popular, I will do this one next.
Image
conradk
Posts: 117
Joined: Tue Jul 05, 2011 10:41 pm

Re: Email form with file attachment

Post by conradk »

jacek wrote:Okay, this seems popular, I will do this one next.

:P
Post Reply