TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-21-2009, 11:13 AM   #1 (permalink)
The Wanderer
 
sandhyagupta's Avatar
 
Join Date: Jun 2009
Posts: 20
Thanks: 4
sandhyagupta is on a distinguished road
Default How to mail files as attachments?

Hi everyone,

I am fetching 4-5 files randomly from a database and mailing them. now i want to mail them as attachments. i tried a lot of ways but was not able to find a solution. can any one please tell me how to mail them as attachments.
I would have stored the files in $text.

thanks in advance.
sandhyagupta is offline  
Reply With Quote
Old 07-21-2009, 11:22 AM   #2 (permalink)
The Acquainted
 
JaoudeStudios's Avatar
 
Join Date: Jul 2009
Location: Surrey
Posts: 105
Thanks: 1
JaoudeStudios is on a distinguished road
Default

Zend Framework makes it really easy. You dont need to use the whole MVC structure, you can just use the library file.

http://framework.zend.com/manual/en/...tachments.html
__________________
JaoudeStudios.com | JaoudeStudios.com Forum | JaoudeStudios.com Blog
OpenSource is the road ahead...!
JaoudeStudios is offline  
Reply With Quote
Old 07-21-2009, 04:14 PM   #3 (permalink)
The Wanderer
 
EGYG33K's Avatar
 
Join Date: Jul 2009
Posts: 5
Thanks: 0
EGYG33K is on a distinguished road
Default

http://phpmailer.worxware.com/index.php?pg=phpmailer

Methods:
http://phpmailer.worxware.com/index.php?pg=methods

Tutorial:
http://phpmailer.worxware.com/index.php?pg=tutorial

AddAttachment() or AddStringAttachment() are the methods you need
EGYG33K is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to protect your php files & database if PHP fails! Sam Granger Tips & Tricks 5 02-18-2012 08:07 PM
PHP Mail - Help sending multiple attachments xperience Absolute Beginners 5 09-06-2010 08:27 AM
Retrieving Files from a Backup in Vista CMellor The Lounge 2 06-24-2008 02:34 PM
Mail function.. Tanax Advanced PHP Programming 8 05-05-2008 08:20 PM
Notepage like application to open large MySQL files Wildhoney General 6 12-07-2007 02:18 PM


All times are GMT. The time now is 04:22 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design