Swift Mailer Question - Multipart emails show as Attachments
Posted: Wed Aug 16, 2006 1:24 pm
Hello all.
I'm using Swift Mailer to send HTML email newsletters. It's a small user base, so I prefer to handle everything with swift.
Anywho, my problem/query is this: When sending multipart emails, at least in Thunderbird, the test emails I'm sending myself arrive in my inbox showing that they have attachments.
This only happens when I'm using multipart emails. For example:
It also happens if I include only the "Plain Text Email" line, so that the 'HTML EMAIL' line isn't added as a part. BUT, when I use something like:
...it doesn't show up in my mail client as having an 'attachment.'
Any ideas as to why this is happening? It's not a huge deal, but these days people are less likely to open an email with what looks like an attachment.
I'm using Swift Mailer to send HTML email newsletters. It's a small user base, so I prefer to handle everything with swift.
Anywho, my problem/query is this: When sending multipart emails, at least in Thunderbird, the test emails I'm sending myself arrive in my inbox showing that they have attachments.
This only happens when I'm using multipart emails. For example:
Code: Select all
$mailer->addPart('Plain Text Email');
$mailer->addPart('<i>HTML EMAIL</i>', 'text/html');Code: Select all
$mailer->send('email@addr.com', 'Me <me@email.com>','my subject','my body');Any ideas as to why this is happening? It's not a huge deal, but these days people are less likely to open an email with what looks like an attachment.