Attach word doc with Swift mailer
Posted: Wed Sep 27, 2006 4:47 pm
Code: Select all
$mailer->addAttachment(file_get_contents($file), $name, 'application/msword');Jo
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$mailer->addAttachment(file_get_contents($file), $name, 'application/msword');Code: Select all
$doc_data = file_get_contents($file);
$mailer->addAttachment($doc_data, $name, 'application/msword');
echo '<div>Debug - file:', $file, ', size:', strlen($doc_data), "</div>\n";