You are here: How to generate a HTML email using " instead of ' « All PHP « IT news, forums, messages
How to generate a HTML email using " instead of '

Posted by Stefan Mueller on 11/29/05 11:00

I'd like to generate a HTML email with a PHP script. I do that with
something like
<?php
$body = "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
<style type = 'text/css'>
...

mail($to, $subject, $body, $headers);
?>

It looks fine in Outlook but not in Lotus Notes. If I forward the email from
Outlook to Lotus Notes it also looks fine in Lotus Notes.
I think the problem is that I'm using
<style type = 'text/css'>
instead of
<style type = "text/css">

Therefore my question: How can I generate a HTML email with a PHP script
using " instead of '?
Stefan

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация