You are dead right about not sending an attachment in the mail. Sure way to get yourself into the bad books. TO send attachements with simple old mail you have to make it into a MIME message there are classes in PEAR and some more at phpclasses that does just that.
Finally if you are sending out a large number of mails consider using ezmlm.
all the best
Tim Thorburn wrote:
Hi,
A client of mine asked today if I could setup their current mass mailer to send out attachments - I've never sent attachments with the mail() function before, but before we get into that ... I wanted to ask an opinion of the group.
Would it not be better, rather than sending a file out to hundreds of email addresses, to include a simple link in the body of the email to the image or file stored on the sites server? I'm thinking this for two reasons - a) its a shared server and I wouldn't like it if the admins suddenly said I wasn't allowed to send mass emails with PHP anymore and b) I'm sure there are a growing number of ppl who really would not want to receive an email attachment.
This is the way I'm pitching it tomorrow, but are there any benefits to actually sending these ppl a file attachment to their email that maybe I'm not realizing?
Thanks
-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php