Hi,
I wish to embed an image stored in a mysql db as a blob into a swiftmailer message. Is this possible? Can you point me in the right direction.
Thanks, Mark
Swiftmailer and blobs
Moderators: Chris Corbyn, General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Swiftmailer and blobs
It's possible yes. Just use the EmbeddedFile class instead of the Image class. EmbeddedFile can take a string of bytes (i.e. your BLOB data) along with a Content-type.markwenham wrote:Hi,
I wish to embed an image stored in a mysql db as a blob into a swiftmailer message. Is this possible? Can you point me in the right direction.
Thanks, Mark