>>> \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 brea
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
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 email i'm
getting, its displaying the instead of a line break: here is the code:
$message = "new supp
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
>
I'm trying to use PHP to compose an HTML formatted email and I'm running
into some small problems.
1) When using "Content-Type: multipart/mixed" during my testing both
Thunderbird and Gmail display the plain text and html version of the
email and Firefox attaches the html portion as an attache
Hi,
I downloaded a class from php classes called "clssendmail", the class was
working on a different server
but now I get this error when I try to use it:
"Call to undefined function: imap_8bit() in."
The class is basically to send an email in 2 parts, plain text and HTML...if
the pers
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
Hi all,
Is it necessary to encode the message using base64 or quoted-printable format while
sending the HTML email. What if i don't encode the message i.e (no
Content-Transfer-Encoding specified)? Does it impose some security vulnerabilities?
Please helpe me out
Thanks in advance
Binay
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-
Hi all,
I m sendig out HTML email, using mimemail class which encodes the whole message to be
sent in base64 and Content-Transfer-Encoding: is also specified as base64 only.
Now one of my client is complaining that he is getting garbage in the email (shown
below) after the sign up process in t
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] HTM
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
3:48 PM
Subject: [PHP] HTML email with Outlook
> 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
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() command: -Type:
text/html; charset=iso-8859-1
Whe
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
Hi everyone, I am new to this list, so this is my first post.
I am trying to sen dan HTML email, and so far I got everything running,
except for one very odd problem.
1.) I am setting up all my variables within the .php Script.
2.) I generate my HTML email
3.) I am outputting the email to the bro
ay, February 25, 2002 1:18 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] HTML Email Has Random '!'
>
>
> Hi,
>
> Has anybody every had problems with random characters showing up in HTML
> email messages?
>
> I've set up an auto-responding email system f
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:
Hi,
Has anybody every had problems with random characters showing up in HTML
email messages?
I've set up an auto-responding email system for product purchasing and
registration. The system sends multipart HTML and plain text messages
using mail(). However, exclamation points are showing up in
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
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
attachment. It opens blank.
Anyone have a thought or two about this?
if ($attachment) {
$fp = fopen($attachm
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
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-Encoding: 7bit
in the b
Please help me. I have problem with html email. I send email to 3 email
address : [EMAIL PROTECTED], [EMAIL PROTECTED] and [EMAIL PROTECTED]
The email client for yahoo & eudoramail is their web. And for the last
destination, the email client is ms outlook.
The html email for yahoo & eudoramail
Please help me. I have problem with html email. I send email to 3 email
address : [EMAIL PROTECTED], [EMAIL PROTECTED] and [EMAIL PROTECTED]
The email client for yahoo & eudoramail is their web. And for the last
destination, the email client is ms outlook.
The html email for yahoo & eudoramail a
Hi!
I am trying to embed a file into my html email that I
want to send my friend on Yahoo. I have uploaded the
flash file (.swf) on my server. If I try to embed the
file as html and send...as an email...nothin can be
seen...
Is it because... yahoo filtersI am using Php to
send it
Thanx
47 matches
Mail list logo