Bob Fanger
Bob Fanger

Reputation: 29897

php library for embedding images in email

Which php library makes it easy to embed images into an email.

Upvotes: 2

Views: 700

Answers (4)

vaske
vaske

Reputation: 9542

We use http://swiftmailer.org/ and it's very good and easy to use if you send less emails eta less than 100 K per hour for bulk of emails, in that case it could be memory consuming. Generally it is good tool.

Upvotes: 1

Tim Lytle
Tim Lytle

Reputation: 17624

Zend_Mail seems pretty easy. From the example code:

$mail = new Zend_Mail();
// build message...
$mail->createAttachment($myImage,
                        'image/gif',
                        Zend_Mime::DISPOSITION_INLINE,
                        Zend_Mime::ENCODING_8BIT);

If you want to reference the image in the HTML part of the e-mail, this SO thread may be useful.

Upvotes: 2

Bob Fanger
Bob Fanger

Reputation: 29897

I did found htmlMimeMail5 which is quite nice.

Upvotes: 1

Related Questions