>>> \r\n should be between double quotes: "\r\n"
I think you'll still see the literal ""s in your final email,
though because htmlspecialchars() is converting the angle-brackets in
the tag to their respective HTML entities ("<" for "<" and ">"
for ">").
A bit of a thorny problem because you proba
Have you tried http://es.php.net/manual/en/function.nl2br.php ?
I think it's easier and fits your needs.
De: Adam Williams
Para: PHP General list
Enviado: jueves, 24 de septiembre, 2009 20:52:13
Asunto: [PHP] html email showing instead of line breaks
I have
Double quotes accept special characters and string interpolation, see
the manual: http://php.net/manual/en/language.types.string.php
On Thu, Sep 24, 2009 at 4:00 PM, Adam Williams
wrote:
> Thanks, i'll try that. what is the difference in using '' and ""? I
> thought they were interchangeable.
>
oh nevermind, i see double quotes translate the \r\n to its appropriate
EOL character.
Adam Williams wrote:
Thanks, i'll try that. what is the difference in using '' and ""? I
thought they were interchangeable.
Jonathan Tapicer wrote:
\r\n should be between double quotes: "\r\n"
Thanks, i'll try that. what is the difference in using '' and ""? I
thought they were interchangeable.
Jonathan Tapicer wrote:
\r\n should be between double quotes: "\r\n"
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
\r\n should be between double quotes: "\r\n"
On Thu, Sep 24, 2009 at 3:52 PM, Adam Williams
wrote:
> I have users enter support tickets into a a form and then it
> emails it to me, I'm trying to get the emails to display when they hit enter
> correctly, so i'm changing the \r\n to , but in the e
Tom Ray [Lists] wrote:
Chris wrote:
Richard Lynch wrote:
On Thu, July 26, 2007 2:46 pm, Tom Ray [Lists] wrote:
I'm trying to use PHP to compose an HTML formatted email
Don't do that...
3) Spam Assassin doesn't like it either way and tags the email as SPAM
for the following reasons:
0.6 H
On Fri, July 27, 2007 11:01 am, Tom Ray [Lists] wrote:
> I would have to agree with you Chris, there a many legitimate reasons
> for having HTML mail. I was trying to be a nice guy and send both the
> plain text version and the html version out but like I said, I
> couldn't
> get it to stop display
Chris wrote:
Richard Lynch wrote:
On Thu, July 26, 2007 2:46 pm, Tom Ray [Lists] wrote:
I'm trying to use PHP to compose an HTML formatted email
Don't do that...
3) Spam Assassin doesn't like it either way and tags the email as SPAM
for the following reasons:
0.6 HTML_SHORT_LENGTH BO
> 0.6 HTML_SHORT_LENGTH BODY: HTML is extremely short
Well, lengthen it then.
1.5 MIME_BASE64_TEXT RAW: Message text disguised using base64
encoding
Don't do that. Use plain text or quoted printable.
Any help/suggestions would be appreciated.
Try HTML MIME mail - it does every
Richard Lynch wrote:
On Thu, July 26, 2007 2:46 pm, Tom Ray [Lists] wrote:
I'm trying to use PHP to compose an HTML formatted email
Don't do that...
3) Spam Assassin doesn't like it either way and tags the email as SPAM
for the following reasons:
0.6 HTML_SHORT_LENGTH BODY: HTML is ex
On Thu, July 26, 2007 2:46 pm, Tom Ray [Lists] wrote:
> I'm trying to use PHP to compose an HTML formatted email
Don't do that...
> 3) Spam Assassin doesn't like it either way and tags the email as SPAM
> for the following reasons:
>
> 0.6 HTML_SHORT_LENGTH BODY: HTML is extremely short
>
ECTED]
Sent: Monday, November 24, 2003 5:19 AM
Subject: Re: [PHP] HTML email enconding
On Mon, Nov 24, 2003 at 03:33:57PM +0530, Binay wrote:
:
: So does it mean that if i don't encode the message then no need of
: specifying the Content-Transfer-Encoding??
: And almost all m
On Mon, Nov 24, 2003 at 03:33:57PM +0530, Binay wrote:
:
: So does it mean that if i don't encode the message then no need of
: specifying the Content-Transfer-Encoding??
: And almost all mail client will interpret it correctly??
No. If your HTML message is guaranteed to be in the ISO-8859-1 ran
CTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 24, 2003 3:02 PM
Subject: Re: [PHP] HTML email enconding
> On Mon, Nov 24, 2003 at 02:56:25PM +0530, Binay wrote:
> :
> : Is it necessary to encode the message using base64 or quoted-printable
> : format while sending the HTML em
On Mon, Nov 24, 2003 at 02:56:25PM +0530, Binay wrote:
:
: Is it necessary to encode the message using base64 or quoted-printable
: format while sending the HTML email.
Not always. Sometimes you can get away with only:
Content-Type: text/html; charset="ISO-8859-1"
Content-Transf
When I send HTML emails, I don't base64 encode it, I just set the
content-type to text/html. The mail clients that I've tested it with renders
it correctly
HTH
Martin
> I m sendig out HTML email, using mimemail class which encodes
> the whole message to be sent in base64 and
> Content-Transfer-
Thanks to all those who responded, as always, spelling is key. Where I had
-Type: text/html ... it should have read Content-Type : text/html ...
So it works for now, and hopefully will continue to. I know that there are
a number of email programs out there that do not support HTML mail, as wel
Hello,
On 07/15/2003 07:48 PM, Tim Thorburn wrote:
I've made a PHP script that sends out an automatic email through my
servers cron system, it works well, but I thought I'd try to do some
HTML email to get things to line up a little better.
To do so, I added the following line in my mail() comm
By the context, I'm sure it should read "...not all email clients
support HTML."
(I got a laugh out of it though ;)
-Original Message-
From: Johnny Martinez [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 7:21 PM
To: 'Curt Zirzow'; [EMAIL PROTECTED]
Subj
"Remember not all email clients support email."
Did I read that right or is it a typo?
J
-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 4:17 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] HTML email with Outlook
Tim Thorburn <[EM
Tim Thorburn <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've made a PHP script that sends out an automatic email through my servers
> cron system, it works well, but I thought I'd try to do some HTML email to
> get things to line up a little better.
>
> To do so, I added the following line in my mail
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
Does this help?
Johnny
-Original Message-
From: Tim Thorburn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 3:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] HTML email with Outlook
H
Hi,
try with adding this :
$header = "Content-Type: text/html;
charset=\"iso-8859-1\"\nContent-Transfer-Encoding: 8bit\n\n";
If it don't work, try to build multipart email ...
Regards,
P.E. Baroiller
"Tim Thorburn" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Hi,
>
> I
I would take a look at the headers of an email that does render html
correctly in outlook and see what you are missing.
Trial and error.
Jim Lucas
- Original Message -
From: "Tim Thorburn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 15, 2003 3:48 PM
Subject: [PHP] HTM
Rogers [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 9 January 2003 9:49 AM
> To: Philipp Hartmann
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] HTML email that generates "!"s - any ideas?
>
>
> Hi,
>
> Thursday, January 9, 2003, 7:31:35 AM, you wrote:
> PH>
Hi,
Thursday, January 9, 2003, 7:31:35 AM, you wrote:
PH> Hi everyone, I am new to this list, so this is my first post.
PH> I am trying to sen dan HTML email, and so far I got everything running,
PH> except for one very odd problem.
PH> 1.) I am setting up all my variables within the .php Script
Thanks Martin,
That was indeed the problem! I simply added a '\n' to the end of each
line. And since html doesn't recognize it, it does no harm to the
formatting.
Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]
On Sunday, February 24, 2002, at 06:26 PM, Martin Towell
it's to do with the length of a line - I think it's 1024 - if a lines longer
than that, an ! is put there and a new line is made
Martin
-Original Message-
From: Steven Walker [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 1:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] HTML Emai
check out one of many HTML email scripts on
hotscripts.com.
--- Peter Atkins <[EMAIL PROTECTED]> wrote:
> All,
>
> I'm building a tool that takes form input and sends
> out an html email with a
> word doc attached.
> It sends the text and html version of the email but
> I can't open the
> attac
Eureka! That seems to have fixed the problem. Now to test on the Mac clients.
G
On Tue, 18 Dec 2001 23:11:31 +0100, TD - Sales International Holland B.V. wrote:
>On Tuesday 18 December 2001 15:51, you wrote:
>
>Ok, just a guess here I'm not that familiar with writting my own
>headers W
It looks fine to me. The only difference is that I use
Content-Transfer-Encoding: quoted-printable, which shouldn't make
much of a difference here. A very small misplacement of a newline
character or even a space can cause things not to work correctly.
Your best course of debugging is to send
> Okay I know I must be overlooking somethign super obvious but
>
> I am trying to send a simple HTML email. It works in Netscape
> mail, Pegasus etc however in Outlook and Outlook express it
> actually places the
>
> Content-Type: text/html;
> charset=iso-8859-1 Content-Transfer-Encodin
The very first thing you need to do when thinking about a way to send HTML
e-mail is to take plenty of aspirin and lie down until the urge passes and
you feel sane again.
HTML e-mail bad. Plain text good.
At 06:51 AM 12/18/2001, Gerard Onorato wrote:
>Okay I know I must be overlooking someth
34 matches
Mail list logo