You are here: Re: send mail form file as attachment? « All PHP « IT news, forums, messages
Re: send mail form file as attachment?

Posted by NC on 01/12/06 18:41

Gernot Frisch wrote:
>
> can I send a file someone uploads with a html-form
> to an email recipent?

Yes, you can.

> How would I do this?

There are really two questions here. The first question is, where can
you find the file that the user just uploaded via a form? Read the PHP
Manual:

http://www.php.net/features.file-upload

The second question is, having located the file, how do you attach it
to an e-mail message? The easiest way to do it is to use a third-party
library. My preference is to use phpMailer:

http://phpmailer.sf.net/

Other people may have their own favorites.

Cheers,
NC

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация