[thelist] Attachments and mail through PHP
Beau Hartshorne
beau@uvic.ca
Mon Jun 4 11:28:23 2001
It is possible to send attachments with php. To solve a very similar
problem, I created an online form in a hidden area where people could fill
out the survey. Once they filled out the form and clicked submit, I had php
send an attached tab delimitated text file to the person who was compiling
the survey data. I forget exactly how it worked, but excel imported the tab
delimitated files into rows effortlessly.
Here's a script you could use to send attachments:
http://www.phpwizard.net/resources/phpMisc/scripts/pretty/mail.php3
There is lots and lots of archived discussion about this here (php-general
mailing list):
http://marc.theaimsgroup.com/?l=php-general&w=2&r=1&s=send+attachment&q=b
Cheers,
Beau
-----Original Message-----
From: thelist-admin@lists.evolt.org
[mailto:thelist-admin@lists.evolt.org]On Behalf Of John Meyer
Sent: June 4, 2001 9:02 AM
To: thelist@lists.evolt.org
Subject: [thelist] Attachments and mail through PHP
I was thinking about a problem at work. One of the people here sends out
surveys via access databases through e-mail, and then the results are
manually compiled into an excel worksheet. I was thinking of using PHP to
have a single web interface. The only problem is the excel worksheet. Is
there anyway to use mail to add an attachment to an outgoing e-mail?