Jump to content

I trying to find a way to send by email multiple attachments.


spyros1234

Recommended Posts

Hello

I trying to find a way to send by email multiple attachments.

I found a class (Attachment Mailer v1.2) http://www.finalwebsites.com/snippets.php?id=41

 

I am uploading the first the files and then I am sending them with this class

The problem is that I am getting this error message:

“Warning: mail() [function.mail]: SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in /var/www/vhosts/hostname/httpdocs/attach_mailer_class.php on line 280”

 

Php script :

 

require($_SERVER['DOCUMENT_ROOT']."/admin/attach_mailer_class.php");

$test = new attach_mailer($name = "Spyros Kotsakis", $from = "[email protected]", $to = "[email protected]", $cc = "", $bcc = "", $subject = "Test text email with attachments");

$test->text_body = "...Some body text\n\n the admin";

$test->add_attach_file($_SERVER['DOCUMENT_ROOT']."/uploads/".$row_ekpedeftika_files['file_name']);

$test->process_mail();

 

 

 

Please help me !!!!

 

I am open if you have another suggestion on how to send multiple attachments

 

 

Thank you!

 

 

[attachment deleted by admin]

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.