
Filip Nebrensky - 2008-01-15 13:12:59 -
In reply to message 10 from Filip Nebrensky
Hi Alejandro,
unfortunatelly, another bug was appeared. I extended my simple test for attachment addition:
______________________________________
$mimemail = new nomad_mimemail();
$mimemail->set_charset("utf-8");
$mimemail->set_from("filip@skupina.hm");
$mimemail->set_to("system@imprimis.cz");
$mimemail->set_subject("authorizing test");
$mimemail->set_text("some plain text");
$mimemail->add_attachment("test.php", "test.php");
$mimemail->set_smtp_host(EnvironmentSmtpHost);
$mimemail->set_smtp_auth(EnvironmentSmtpUser, EnvironmentSmtpPass);
$mimemail->set_smtp_log(true);
if ( !$mimemail->send() )
echo $mimemail->get_smtp_log();
______________________________________
If I send it to couple of my addresses, everything is OK, but address of my client (system@imprimis.cz - I think it is on the same computer as SMTP server) can't receive the attachment. It comes as text:
______________________________________
some plain text
--=-nxs_mix_0493d8017e95f52d33fb69b67ad6fc4c
Content-Type: application/octet-stream; name="test.php"
Content-Disposition: attachment; filename="test.php"
Content-Transfer-Encoding: base64
PD9waHAKcmVxdWly... etc.
______________________________________
Any idea, please?
Thanks, Filip