MrBarby
asked on
Sending an email attachment
Hi,
For my website, I want to write a feature that will allow me to send through an email attachment some of my hosted files to users. However, once I have opened and read the file into a variable, i cant seem to actually make the attachment work :(
Can someone help me out?
Cheers
MrBarby
For my website, I want to write a feature that will allow me to send through an email attachment some of my hosted files to users. However, once I have opened and read the file into a variable, i cant seem to actually make the attachment work :(
Can someone help me out?
Cheers
MrBarby
ASKER
OK, thanks, I'll give that a go :)
ASKER
Hmm... I just tested this and it didn't seem to work. Please note that I'm trying to download files that may not necessarily be from the same server, i.e. an http/ftp link. Should this class still work with that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://phpmailer.sourceforge.net/tutorial.html#3
http://phpmailer.sourceforge.net/extending.html
You don't need to load the file before sending it, just point PHPMailer at the file and it will grab it for you.