cid and embedded image

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
emmis
Forum Newbie
Posts: 1
Joined: Sun Oct 24, 2010 1:00 pm

cid and embedded image

Post by emmis »

Hallo Forum,

i would like to embed an image into my html-body.
My Problem is: I have already pre-produced an inline-CID (and stored it together with the picture-link as a pair in a DB) ... and would like to give to the picture. In PHPmailer is something like:

$mail->AddEmbeddedImage($array_serienbriefatta[att_pfad], $array_serienbriefatta[inline_cid], $array_serienbriefatta[att_pfad]);

In Swift-Mailer I know just this:

$cid = $message->embed(Swift_Image::fromPath('image.png'));

... wich produces the inline_cid. How can I give a CID to the Image analo to the phpmailer-example.

Thanx for your help (and sorry for my rotten english)
Post Reply