Welcome Guest, Not a member yet? Register   Sign In
mail() --> bad parameter
#1

[eluser]sl3dg3hamm3r[/eluser]
Hey there,

I can't make the mailer-class send an email with attachement. I would always get following error in the log:

Code:
Severity: Warning  --> mail(): Bad parameters to mail() function, mail not sent. /[...]/system/libraries/Email.php 1444

According to the email->print_debugger(), everything looks healthy actually:
Code:
Return-Path: <[email protected]>
Reply-To: "[email protected]" <[email protected]>
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="B_ATC_4a588b0f37696"
This is a multi-part message in MIME format.
Your email application may not support this format.

--B_ATC_4a588b0f37696
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Subject Text
Body Text


--B_ATC_4a588b0f37696
Content-type: application/pdf; name=&quot;test.pdf&quot;
Content-Disposition: attachment;
Content-Transfer-Encoding: base64

[data attachement]

--B_ATC_4a588b0f37696--</pre>

As soon as I leave away the attachement, the mail is sent...

Any hints? I'd appreciate...
Sl3dg3
#2

[eluser]sl3dg3hamm3r[/eluser]
Well, I ended up with PHPMailer. I didn't succeed with CI's Mail-Class...




Theme © iAndrew 2016 - Forum software by © MyBB