RE: [PHP] HTML Emails

From: Date: Mon, 20 Nov 2000 17:15:18 +0000
Subject: RE: [PHP] HTML Emails
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-26294@lists.php.net to get a copy of this message
just as easy to do: store the images on a public web server reference the url of the image completely (http://www.foo.bar/pic.gif) make sure you include the content headers for html based email <? // other stuff like initalizing variables ... // set email headers and mail message $headers = "From: $from\n"; $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; $headers .= "Content-Transfer-Encoding: 8bit\n\n"; mail($to,$subj,$body,$headers); ?> this will make sending the mail faster since you don't have to 'embed' the image. Also, user will spend less time downloading his mail (although, when opened, it will make the call to retrieve the image). -----Original Message----- From: Brian Clark [mailto:brianj@fusionwerks.com] Sent: Monday, November 20, 2000 10:56 AM To: php-general@lists.php.net Subject: Re: [PHP] HTML Emails Hello Bolke & Andrés (BBd == "Bruin, Bolke de") B.deBruin@tijdbeursmedia.nl writes: BBd> Just send the HTML, BBd> the images aren't embedded but rather downloaded from a HTTP server. Shouldn't work. AFAIK, you'll have to send the correct Headers/MIME type. <img src="foo.gif"> Should show up as plain text here. Don't reinvent the wheel; use one of the classes here, that were created specifically for the purpose of doing that: <http://phpclasses.upperdesign.com/browse.html/class/2> Richard Heyes' class looks like what you're looking for. BBd> Bolke BBd> BBd> -----Oorspronkelijk bericht----- BBd> Van: Andrés Taján [mailto:atajan@illotempore.com.ar] BBd> Verzonden: Monday, November 20, 2000 4:48 PM BBd> Aan: php-general@lists.php.net BBd> Onderwerp: [PHP] HTML Emails BBd> BBd> Please, I need your help! BBd> BBd> I'm don't know how to send mails in html format with embedded images? BBd> Someone know how can I do it? BBd> BBd> Thanks BBd> =================================================== BBd> Andrés Taján atajan@illotempore.com.ar BBd> illo tempore Tel/Fax: (54) (11) 4784-1819 BBd> www.illotempore.com BBd> =================================================== -Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#26294) next »