Welcome Guest, Not a member yet? Register   Sign In
Double attachments
#1

[eluser]robertvn2k[/eluser]
Sometimes I have a problem in sending mail with attachments. I send only 1 mail with 3 attachments. But I received double (6 attachments).

Code:
$this->email->initialize($config);
$this->email->clear(TRUE);
$this->email->from($from_email, $from_name);
$this->email->to($to_email);
$this->email->bcc($bcc_email);
$this->email->subject($subject);
$this->email->message($message);
$this->email->attach('./pdf/file1.pdf');
$this->email->attach('./pdf/file2.pdf');
$this->email->attach('./pdf/file3.pdf');
$this->email->send();

Does anyone have any ideas?
#2

[eluser]InsiteFX[/eluser]
Note: Use a file path, not a URL. For multiple attachments use the function multiple times.
Try this:
Code:
$this->email->attach('../pdf/file1.pdf');
$this->email->attach('../pdf/file2.pdf');
$this->email->attach('../pdf/file3.pdf');




Theme © iAndrew 2016 - Forum software by © MyBB