Closed GoogleCodeExporter closed 9 years ago
Here's a patch that works. Probably best to figure out why $content_type is
not returning properly in the add attachments. It is doing so correctly in the
stanza below (verified by logging)
//get the body
$body = '';
foreach($decoded[0]["Parts"] as $row) {
$content_type = $row['Headers']['content-type:'];
/secure/v_mailto.php
//add an attachment
+ if ($file_ext == "wav") {
+ $file_ext = "audio/x-wav";
+ }
+ else if ($file_ext == "mp3") {
+ $file_ext = "audio/x-mp3";
+ }
$mail->AddStringAttachment($parts_array["Body"],$file,$encoding,$file_ext);
}
}
AddStringAttachment expects mime-type for the last argument, not file_ext...
Original comment by James.O....@gmail.com
on 29 Nov 2011 at 5:40
Ah missed that on the recent major change to the mailto php page. Thanks for
pointing this out with a working solution.
Original comment by markjcrane@gmail.com
on 30 Nov 2011 at 6:52
Original issue reported on code.google.com by
James.O....@gmail.com
on 29 Nov 2011 at 4:39