I am having a weird problem. I am sending emails with attachments.
(I used your example code as a base).
The attachments are not recognized by outlook or outlook express.
I bcc to myself (Mac Mail client) and I see the attachment fine.
Any thoughts on this...?
I let swift set the mime type (octet-stream) :
Code: Select all
$mailer = new Swift(new Swift_Connection_SMTP('mail.xxx.org'));
if ($mailer->isConnected()) {
$mailer->addAttachment(file_get_contents($file), $this->current_doc);
if ($this->test_email != '')
{
$mailer->send(
'<' . $this->test_email . '>',
'"' . $this->name . ' Ski Report" <dds@xxx.org>',
'Ski Report'
);
$mailer->close();
}Thanks again
(And sorry about posting in the wrong area...)