Re: [PHP] html email showing instead of line breaks

2009-09-24 Thread Ben Dunlap
>>> \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

Re: [PHP] html email showing instead of line breaks

2009-09-24 Thread Fernando Castillo Aparicio
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

Re: [PHP] html email showing instead of line breaks

2009-09-24 Thread Jonathan Tapicer
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. >

Re: [PHP] html email showing instead of line breaks

2009-09-24 Thread Adam Williams
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"

Re: [PHP] html email showing instead of line breaks

2009-09-24 Thread Adam Williams
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

Re: [PHP] html email showing instead of line breaks

2009-09-24 Thread Jonathan Tapicer
\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

[PHP] html email showing instead of line breaks

2009-09-24 Thread Adam Williams
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

Re: [PHP] HTML Email Composing Problem.

2007-07-29 Thread Chris
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

Re: [PHP] HTML Email Composing Problem.

2007-07-27 Thread Richard Lynch
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

Re: [PHP] HTML Email Composing Problem.

2007-07-27 Thread Tom Ray [Lists]
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

Re: [PHP] HTML Email Composing Problem.

2007-07-27 Thread Richard Heyes
> 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

Re: [PHP] HTML Email Composing Problem.

2007-07-27 Thread Chris
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

Re: [PHP] HTML Email Composing Problem.

2007-07-26 Thread Richard Lynch
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 >

[PHP] HTML Email Composing Problem.

2007-07-26 Thread Tom Ray [Lists]
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

[PHP] HTML email problem: IMAP

2004-02-20 Thread Ryan A
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

Re: [PHP] HTML email enconding

2003-11-24 Thread Nathan Taylor
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

Re: [PHP] HTML email enconding

2003-11-24 Thread Eugene Lee
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

Re: [PHP] HTML email enconding

2003-11-24 Thread Binay
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

Re: [PHP] HTML email enconding

2003-11-24 Thread Eugene Lee
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

[PHP] HTML email enconding

2003-11-24 Thread Binay
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

RE: [PHP] HTML email problem

2003-11-19 Thread Martin Towell
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-

[PHP] HTML email problem

2003-11-19 Thread Binay
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

Re: [PHP] HTML email with Outlook

2003-07-15 Thread Tim Thorburn
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

Re: [PHP] HTML email with Outlook

2003-07-15 Thread Manuel Lemos
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

RE: [PHP] HTML email with Outlook

2003-07-15 Thread Mike Brum
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

RE: [PHP] HTML email with Outlook

2003-07-15 Thread Johnny Martinez
"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

Re: [PHP] HTML email with Outlook

2003-07-15 Thread Curt Zirzow
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

RE: [PHP] HTML email with Outlook

2003-07-15 Thread Johnny Martinez
$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

Re: [PHP] HTML email with Outlook

2003-07-15 Thread Baroiller Pierre-Emmanuel
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

Re: [PHP] HTML email with Outlook

2003-07-15 Thread Jim Lucas
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

[PHP] HTML email with Outlook

2003-07-15 Thread Tim Thorburn
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

RE: [PHP] HTML email that generates "!"s - any ideas?

2003-01-08 Thread Timothy Hitchens \(HiTCHO\)
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>

Re: [PHP] HTML email that generates "!"s - any ideas?

2003-01-08 Thread Tom Rogers
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

[PHP] HTML email that generates "!"s - any ideas?

2003-01-08 Thread Philipp Hartmann
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

Re: [PHP] HTML Email Has Random '!'

2002-02-25 Thread Steven Walker
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

RE: [PHP] HTML Email Has Random '!'

2002-02-24 Thread 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 Email Has Random '!'

2002-02-24 Thread Steven Walker
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

Re: [PHP] HTML Email attachment problem

2002-01-31 Thread Anas Mughal
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

[PHP] HTML Email attachment problem

2002-01-31 Thread Peter Atkins
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

Re: [PHP] HTML Email

2001-12-18 Thread Gerard Onorato
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

Re: [PHP] HTML Email

2001-12-18 Thread jimtronic
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

RE: [PHP] HTML Email

2001-12-18 Thread Richard Heyes
> 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

Re: [PHP] HTML Email

2001-12-18 Thread Richard S. Crawford
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

[PHP] HTML Email

2001-12-18 Thread Gerard Onorato
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

[PHP] HTML email

2001-10-23 Thread Benny
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

[PHP] Html email

2001-10-22 Thread Benny
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

[PHP] Html email with Flash content embedded

2001-10-05 Thread Dhaval Desai
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