Jump to content

Email Script - Modifying for Multiple Attachments


Recommended Posts

Hello everyone.

 

I found a PHP email script on the internet and it worked perfectly.  I needed to modify to allow for more than one file attachment, and I can't seem to get it to work.

 

It's not too long of a script, and I would truly appreciate it if anyone could help me out.  I think I'm pretty close to getting it to work.

 

Here is the code I'm using now:

http://pastie.caboo.se/68636

 

Here is the original code that works (with only one attachment):

http://pastie.caboo.se/68639

 

Any tips will be greatly appreciated,

Thank you,

Brad

I use this Class for sending Attachment

Its So simple and easy

$ext["attach"] = "atch.txt,test.wav";
$mail = new mail("admin@localhost", "Mail Subject", "Mail Body", $ext)

You can also use in this way

$mail = new mail("admin@localhost", "Mail Subject","Mail Body");
$test->atch("atch.txt,test.wav");//Set Attachment

And Its So Easy

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.