Re: [PHP] How do you send stylized email?

2008-02-27 Thread Zoltán Németh
2008. 02. 26, kedd keltezéssel 11.27-kor Daniel Brown ezt írta:
 On Tue, Feb 26, 2008 at 10:57 AM, Robert Cummings [EMAIL PROTECTED] wrote:
   Marriage?? That's for backwards people stuck in ancient pointless
   traditions :) And moreso in today's culture... it's just a commercial
   suckfest when your money could better go to student loans and raising a
   family.
 
 http://debianddan.com/
 
 CC: Debs
 

congratulations :)

greets
Zoltán Németh

 -- 
 /Dan
 
 Daniel P. Brown
 Senior Unix Geek
 ? while(1) { $me = $mind--; sleep(86400); } ?
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-27 Thread Andrew Ballard
On Tue, Feb 26, 2008 at 11:39 PM, Paul Scott [EMAIL PROTECTED] wrote:
  [snip]

  --Paul


 All Email originating from UWC is covered by disclaimer
  http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm


Seriously? All e-mail? Sorry - couldn't resist. That is one serious
disclaimer. I especially like the last line.

Andrew

Note: This e-mail is covered by the following disclaimer:

DISCLAIMER: Nothing in this message is intended to be taken seriously.
As a matter of fact, I won't be able to remember whether the thoughts
expressed in the above message were really my own or those of an
unknown third party two seconds after pressing Send, so I take no
responsibility for any misunderstanding, confusion, or bewilderment
that might be caused by the content contained in this message. That's
my story, but I'm not sticking to it. Oh, and my email disclaimer is
better than your email disclaimer. As such, my email disclaimer trumps
yours. So there. :-P

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-27 Thread Paul Scott

On Wed, 2008-02-27 at 13:18 -0500, Andrew Ballard wrote:

 Seriously? All e-mail? Sorry - couldn't resist. That is one serious
 disclaimer. I especially like the last line.
 

Holy crap! I had never actually looked at that stupid disclaimer before!
It gets added on the way out of our network, so like 80% of the mail
that I send doesn't even have that _HTML_ link in it.

Yech! Oh well, I suppose the suits have decided that its necessary

--Paul


All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do you send stylized email?

2008-02-27 Thread Andrew Ballard
On Wed, Feb 27, 2008 at 2:16 PM, Paul Scott [EMAIL PROTECTED] wrote:

  On Wed, 2008-02-27 at 13:18 -0500, Andrew Ballard wrote:

   Seriously? All e-mail? Sorry - couldn't resist. That is one serious
   disclaimer. I especially like the last line.
  

  Holy crap! I had never actually looked at that stupid disclaimer before!
  It gets added on the way out of our network, so like 80% of the mail
  that I send doesn't even have that _HTML_ link in it.

  Yech! Oh well, I suppose the suits have decided that its necessary

  --Paul



 All Email originating from UWC is covered by disclaimer
  http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm


Yeah, I figured it was getting tacked on by a gateway somewhere.
Still... I'm not sure the suits there want to be responsible for
ANYTHING -- maybe not even for that disclaimer!

Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Richard Heyes

I want to send a styled email via heredoc, can that be done?

$message = EOT
Title: This is a title of the Event.
Time: This the time of the Event.

Please show up on time.
EOT

mail('[EMAIL PROTECTED]' , 'An Event' , $message);

If so, how do you style it?

If not, how do you send stylized email?


The easiest way is this:

$message = EOT
span style=color: red
Title: This is a title of the Event.
Time: This the time of the Event.
/span

Please show up on time.
EOT

mail('[EMAIL PROTECTED]' , 'An Event' , $message, 'Content-Type:
text/html');

If you want to send multipart text/HTML emails, have a look at my
website for the HTMLMimeMail class which greatly simplifies this.

--
Richard Heyes
http://www.phpguru.org
Free PHP and Javascript code

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Jochem Maas

tedd schreef:

Hi gang:

I want to send a styled email via heredoc, can that be done?

$message = EOT
Title: This is a title of the Event.
Time: This the time of the Event.

Please show up on time.
EOT


that's just string generation ... 'style' equates to harassing people
with HTML emails ... which will require a message built using the multipart mime
specification ... for which you'll want to grab a ready built lib/class
in order to save your self the hassle.

recommended: phpmailer (google it)

which you can then pull apart to see exactly how it works (it's work
comprises of building the $message into a format that mail readers will
understand as multi-part mime.)



mail('[EMAIL PROTECTED]' , 'An Event' , $message);

If so, how do you style it?

If not, how do you send stylized email?


style comes naturally to some of us ;-)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Per Jessen
tedd wrote:

 Hi gang:
 
 I want to send a styled email via heredoc, can that be done?

Yes.

 $message = EOT
 Title: This is a title of the Event.
 Time: This the time of the Event.
 
 Please show up on time.
 EOT
 
 mail('[EMAIL PROTECTED]' , 'An Event' , $message);
 
 If so, how do you style it?

With the normal elements - for text emails, whitespace, line breaks and
line spacing.  For HTML emails, you style it as you would any webpage
with HTML and CSS.


/Per Jessen, Zürich

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Daniel Brown
On Tue, Feb 26, 2008 at 9:28 AM, tedd [EMAIL PROTECTED] wrote:
 Hi gang:

  I want to send a styled email via heredoc, can that be done?

  $message = EOT
  Title: This is a title of the Event.
  Time: This the time of the Event.

  Please show up on time.
  EOT

Without beating the subject to death, since you've already gotten
two good answers, I'll add in that your HEREDOC (aside from being
prone to a parse error due to the missing semicolon after the closing
EOT) will end immediately after `please show up on time.`

Even though you started EOT on it's own line as is required, the
last carriage return/newline will not be included in $message.  If you
want an ending newline (which I consider a Good Idea[tm]), then change
the above to:

$message =EOT
Title: This is the title of the Event.
Time: This is the time of the Event.

Please show up on time.

EOT;

-- 
/Dan

Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--; sleep(86400); } ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Daniel Brown
On Tue, Feb 26, 2008 at 9:46 AM, Jochem Maas [EMAIL PROTECTED] wrote:
  style comes naturally to some of us ;-)

Well, if you know that, why do you keep acting so jealous of Tedd?  ;-P

-- 
/Dan

Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--; sleep(86400); } ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread tedd

At 2:42 PM + 2/26/08, Richard Heyes wrote:

I want to send a styled email via heredoc, can that be done?

$message = EOT
Title: This is a title of the Event.
Time: This the time of the Event.

Please show up on time.
EOT

mail('[EMAIL PROTECTED]' , 'An Event' , $message);

If so, how do you style it?

If not, how do you send stylized email?


The easiest way is this:

$message = EOT
span style=color: red
Title: This is a title of the Event.
Time: This the time of the Event.
/span

Please show up on time.
EOT

mail('[EMAIL PROTECTED]' , 'An Event' , $message, 'Content-Type:
text/html');


Duh!

I should have thought of that.

Thanks,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread tedd

At 3:46 PM +0100 2/26/08, Jochem Maas wrote:

style comes naturally to some of us ;-)


:-)

Yes, but it eventually comes to style=oldeveryone/style

Cheers,

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread tedd

At 9:52 AM -0500 2/26/08, Daniel Brown wrote:

On Tue, Feb 26, 2008 at 9:28 AM, tedd [EMAIL PROTECTED] wrote:

 Hi gang:

  I want to send a styled email via heredoc, can that be done?

  $message = EOT
  Title: This is a title of the Event.
  Time: This the time of the Event.

  Please show up on time.
  EOT


Without beating the subject to death, since you've already gotten
two good answers, I'll add in that your HEREDOC (aside from being
prone to a parse error due to the missing semicolon after the closing
EOT) will end immediately after `please show up on time.`

Even though you started EOT on it's own line as is required, the
last carriage return/newline will not be included in $message.  If you
want an ending newline (which I consider a Good Idea[tm]), then change
the above to:

$message =EOT
Title: This is the title of the Event.
Time: This is the time of the Event.

Please show up on time.

EOT;


Yeah, but that was just a first draft. I never write anything that 
runs the first time. :-)


It keeps me sharp, or dull, as the case may be.

Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread tedd

At 9:53 AM -0500 2/26/08, Daniel Brown wrote:

On Tue, Feb 26, 2008 at 9:46 AM, Jochem Maas [EMAIL PROTECTED] wrote:

  style comes naturally to some of us ;-)


Well, if you know that, why do you keep acting so jealous of Tedd?  ;-P


Nah, he's just looking for the blissful part.

Cheers,

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Jochem Maas

tedd schreef:

At 3:46 PM +0100 2/26/08, Jochem Maas wrote:

style comes naturally to some of us ;-)


:-)

Yes, but it eventually comes to style=oldeveryone/style


only if your markup is correct

quot;but it eventually comes to span class=oldeveryone/spanquot;

;-)



Cheers,

tedd


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread tedd

At 4:10 PM +0100 2/26/08, Jochem Maas wrote:

tedd schreef:

At 3:46 PM +0100 2/26/08, Jochem Maas wrote:

style comes naturally to some of us ;-)


:-)

Yes, but it eventually comes to style=oldeveryone/style


only if your markup is correct


Now you sound like my wife.  :-)

It's not what you said -- it's how you said it. (wife)

Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Jochem Maas

tedd schreef:

At 4:10 PM +0100 2/26/08, Jochem Maas wrote:

tedd schreef:

At 3:46 PM +0100 2/26/08, Jochem Maas wrote:

style comes naturally to some of us ;-)


:-)

Yes, but it eventually comes to style=oldeveryone/style


only if your markup is correct


Now you sound like my wife.  :-)


for your sake I hope I don't look like her :-P
that said I'd hazard a guess and say you listen to what she says ... my ex
used to say the same thing.


It's not what you said -- it's how you said it. (wife)

Cheers,

tedd



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread TG

For his sake, I hope SHE doesn't look like YOU.

For YOUR sake, I hope you don't look like her.

... it's how you said it.:)

-TG, professional smart ass

- Original Message -
From: Jochem Maas [EMAIL PROTECTED]
To: tedd [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Date: Tue, 26 Feb 2008 16:27:09 +0100
Subject: Re: [PHP] How do you send stylized email?

 tedd schreef:
  At 4:10 PM +0100 2/26/08, Jochem Maas wrote:
  tedd schreef:
  At 3:46 PM +0100 2/26/08, Jochem Maas wrote:
  style comes naturally to some of us ;-)
 
  :-)
 
  Yes, but it eventually comes to style=oldeveryone/style
 
  only if your markup is correct
  
  Now you sound like my wife.  :-)
 
 for your sake I hope I don't look like her :-P
 that said I'd hazard a guess and say you listen to what she says ... my ex
 used to say the same thing.
 
  It's not what you said -- it's how you said it. (wife)
  
  Cheers,
  
  tedd

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread tedd

At 4:27 PM +0100 2/26/08, Jochem Maas wrote:

tedd schreef:

Now you sound like my wife.  :-)


for your sake I hope I don't look like her :-P


No, I have an absolutely beautiful wife -- no complaints in that department.


that said I'd hazard a guess and say you listen to what she says ... my ex
used to say the same thing.


Ex's are the experience you need to get it to work.

I've always said that everyone should go through at least one divorce 
before getting married.


Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Robert Cummings

On Tue, 2008-02-26 at 10:38 -0500, tedd wrote:
 At 4:27 PM +0100 2/26/08, Jochem Maas wrote:
 tedd schreef:
 Now you sound like my wife.  :-)
 
 for your sake I hope I don't look like her :-P
 
 No, I have an absolutely beautiful wife -- no complaints in that department.
 
 that said I'd hazard a guess and say you listen to what she says ... my ex
 used to say the same thing.
 
 Ex's are the experience you need to get it to work.
 
 I've always said that everyone should go through at least one divorce 
 before getting married.

Marriage?? That's for backwards people stuck in ancient pointless
traditions :) And moreso in today's culture... it's just a commercial
suckfest when your money could better go to student loans and raising a
family.

I've been happily living in sin with my common-law wife for 9 years.
Besides, isn't marriage primarily a religious thing? In the old
testament marriage was often implied by the simple act of laying with a
woman... or two... or three... Polygamy, how did that fall out of
religious favour? :)

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Daniel Brown
On Tue, Feb 26, 2008 at 10:38 AM, tedd [EMAIL PROTECTED] wrote:
 At 4:27 PM +0100 2/26/08, Jochem Maas wrote:
  tedd schreef:

 Now you sound like my wife.  :-)
  
  for your sake I hope I don't look like her :-P

  No, I have an absolutely beautiful wife -- no complaints in that department.

She must subscribe to the list.  ;-P

-- 
/Dan

Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--; sleep(86400); } ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Daniel Brown
On Tue, Feb 26, 2008 at 10:57 AM, Robert Cummings [EMAIL PROTECTED] wrote:
  Marriage?? That's for backwards people stuck in ancient pointless
  traditions :) And moreso in today's culture... it's just a commercial
  suckfest when your money could better go to student loans and raising a
  family.

http://debianddan.com/

CC: Debs

-- 
/Dan

Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--; sleep(86400); } ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Ray Hauge

Robert Cummings wrote:

On Tue, 2008-02-26 at 10:38 -0500, tedd wrote:

At 4:27 PM +0100 2/26/08, Jochem Maas wrote:

tedd schreef:

Now you sound like my wife.  :-)

for your sake I hope I don't look like her :-P

No, I have an absolutely beautiful wife -- no complaints in that department.


that said I'd hazard a guess and say you listen to what she says ... my ex
used to say the same thing.

Ex's are the experience you need to get it to work.

I've always said that everyone should go through at least one divorce 
before getting married.


Marriage?? That's for backwards people stuck in ancient pointless
traditions :) And moreso in today's culture... it's just a commercial
suckfest when your money could better go to student loans and raising a
family.

I've been happily living in sin with my common-law wife for 9 years.
Besides, isn't marriage primarily a religious thing? In the old
testament marriage was often implied by the simple act of laying with a
woman... or two... or three... Polygamy, how did that fall out of
religious favour? :)

Cheers,
Rob.


I know it was a rhetorical question, but I was curious.

A lot of the modern standards started when St. Augustine started 
teaching that the fall of Adam and Eve was the original sin which was 
sex.  Somehow that took hold and then sex became a bad thing and to be 
the most holy of holy you should be celibate.


http://en.wikipedia.org/wiki/Augustine_of_Hippo

As far as the history of monogamy goes, I had to look this one up.  It 
also seems to stem from the teachings of St. Augustine (late AD 300s). 
Martin Luther eventually allowed polygamy after coming to the conclusion 
that there was no scriptural evidence that polygamy was wrong. 
Obviously that's no longer in effect though.  It has also been allowed 
after certain wars to beef up the population again.


http://en.wikipedia.org/wiki/Polygamy#Christianity

I typically don't use wikipedia for sole sources, but everything else I 
could find was some religious site that was very biased.


How's that for off topic?

--
Ray Hauge
www.primateapplications.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Daniel Brown
On Tue, Feb 26, 2008 at 11:28 AM, Ray Hauge [EMAIL PROTECTED] wrote:

  How's that for off topic?


Off-topic or not, welcome back.  Looks like the last time you
posted here was 2006.  ;-P

-- 
/Dan

Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--; sleep(86400); } ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Daniel Brown
On Tue, Feb 26, 2008 at 11:37 AM, Paul Scott [EMAIL PROTECTED] wrote:
  
   http://debianddan.com/
  
   CC: Debs
  

  LOL! Now you are going to get a gazillion requests coming from people
  looking for debian packages (possibly a new debian based distro for
  people that stutter?)

That was pretty close to what I was thinking when I registered the
domain name, actually.

I wonder if I can just apt-get the wedding and have it all
automated for me.  ;-P

-- 
/Dan

Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--; sleep(86400); } ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Paul Scott

On Tue, 2008-02-26 at 11:44 -0500, Daniel Brown wrote:
 I wonder if I can just apt-get the wedding and have it all
 automated for me.  ;-P

If only! I remember the stress, and a good friend of mine is gettin'
hitched on Sat - while I am in Uganda - go figure! 

Anyway, congrats, and enjoy the day... (Jokes aside of course)

--Paul

All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do you send stylized email?

2008-02-26 Thread Daniel Brown
On Tue, Feb 26, 2008 at 11:47 AM, Paul Scott [EMAIL PROTECTED] wrote:

  On Tue, 2008-02-26 at 11:44 -0500, Daniel Brown wrote:
   I wonder if I can just apt-get the wedding and have it all
   automated for me.  ;-P

  If only! I remember the stress, and a good friend of mine is gettin'
  hitched on Sat - while I am in Uganda - go figure!

  Anyway, congrats, and enjoy the day... (Jokes aside of course)

Thanks, Paul.

All I have to say is, Thank God for Jameson. [1]

1:http://www.jameson.ie/

-- 
/Dan

Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--; sleep(86400); } ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] How do you send stylized email?

2008-02-26 Thread Edward Kay
  Ex's are the experience you need to get it to work.
 
  I've always said that everyone should go through at least one divorce
  before getting married.

 Marriage?? That's for backwards people stuck in ancient pointless
 traditions :) And moreso in today's culture... it's just a commercial
 suckfest when your money could better go to student loans and raising a
 family.

Possibly. Or as I prefer to see it, it's the one time in your life when you
surround yourself with all your friends and family to celebrate your
relationship.

 I've been happily living in sin with my common-law wife for 9 years.
 Besides, isn't marriage primarily a religious thing?

Not necessarily. My wife and I have no religion so had a civil ceremony -
held in the Assembly Rooms, Bath which was an 18th Century gambling venue ;)

 In the old
 testament marriage was often implied by the simple act of laying with a
 woman... or two... or three... Polygamy, how did that fall out of
 religious favour? :)

Not in the UK. In UK law there is no such thing as a common-law
wife/husband. If you're unmarried, you have as many rights to the other
person as the day you first met - practically none.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] How do you send stylized email?

2008-02-26 Thread Bastien Koert

send an html email...
 
if you are looking to send calendar events, you could look at using the vcal or 
ical standards
 
plain text emails you can't do much with other than separate sections with 
dashes or asteriks
 
 
bastien
 
 
 Date: Tue, 26 Feb 2008 09:28:06 -0500 To: php-general@lists.php.net From: 
 [EMAIL PROTECTED] Subject: [PHP] How do you send stylized email?  Hi 
 gang:  I want to send a styled email via heredoc, can that be done?  
 $message = EOT Title: This is a title of the Event. Time: This the time 
 of the Event.  Please show up on time. EOT  mail('[EMAIL PROTECTED]' , 
 'An Event' , $message);  If so, how do you style it?  If not, how do you 
 send stylized email?  Cheers,  tedd --  --- http://sperling.com 
 http://ancientstones.com http://earthstones.com  --  PHP General Mailing 
 List (http://www.php.net/) To unsubscribe, visit: 
 http://www.php.net/unsub.php 
_



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Paul Scott

On Tue, 2008-02-26 at 11:27 -0500, Daniel Brown wrote:
 On Tue, Feb 26, 2008 at 10:57 AM, Robert Cummings [EMAIL PROTECTED] wrote:
   Marriage?? That's for backwards people stuck in ancient pointless
   traditions :) And moreso in today's culture... it's just a commercial
   suckfest when your money could better go to student loans and raising a
   family.
 
 http://debianddan.com/
 
 CC: Debs
 

LOL! Now you are going to get a gazillion requests coming from people
looking for debian packages (possibly a new debian based distro for
people that stutter?) 

:))

--Paul

All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do you send stylized email?

2008-02-26 Thread tedd

At 11:44 AM -0500 2/26/08, Daniel Brown wrote:

http://debianddan.com/


Hey, she's much cuter than I would have thought.  ;-)

Cheers,

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Robert Cummings

On Tue, 2008-02-26 at 10:28 -0600, Ray Hauge wrote:
 Robert Cummings wrote:
  On Tue, 2008-02-26 at 10:38 -0500, tedd wrote:
  At 4:27 PM +0100 2/26/08, Jochem Maas wrote:
  tedd schreef:
  Now you sound like my wife.  :-)
  for your sake I hope I don't look like her :-P
  No, I have an absolutely beautiful wife -- no complaints in that 
  department.
 
  that said I'd hazard a guess and say you listen to what she says ... my ex
  used to say the same thing.
  Ex's are the experience you need to get it to work.
 
  I've always said that everyone should go through at least one divorce 
  before getting married.
  
  Marriage?? That's for backwards people stuck in ancient pointless
  traditions :) And moreso in today's culture... it's just a commercial
  suckfest when your money could better go to student loans and raising a
  family.
  
  I've been happily living in sin with my common-law wife for 9 years.
  Besides, isn't marriage primarily a religious thing? In the old
  testament marriage was often implied by the simple act of laying with a
  woman... or two... or three... Polygamy, how did that fall out of
  religious favour? :)
  
  Cheers,
  Rob.
 
 I know it was a rhetorical question, but I was curious.
 
 A lot of the modern standards started when St. Augustine started 
 teaching that the fall of Adam and Eve was the original sin which was 
 sex.  Somehow that took hold and then sex became a bad thing and to be 
 the most holy of holy you should be celibate.
 
 http://en.wikipedia.org/wiki/Augustine_of_Hippo
 
 As far as the history of monogamy goes, I had to look this one up.  It 
 also seems to stem from the teachings of St. Augustine (late AD 300s). 
 Martin Luther eventually allowed polygamy after coming to the conclusion 
 that there was no scriptural evidence that polygamy was wrong. 
 Obviously that's no longer in effect though.  It has also been allowed 
 after certain wars to beef up the population again.
 
 http://en.wikipedia.org/wiki/Polygamy#Christianity
 
 I typically don't use wikipedia for sole sources, but everything else I 
 could find was some religious site that was very biased.

Interesting.

So... using this system, a world where everyone is as holy as can be
would be a world devoid of humans (gotta have sex to reproduce). I don't
think St. Augustine was thinking it through :)

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Robert Cummings

On Tue, 2008-02-26 at 11:53 -0500, Daniel Brown wrote:
 On Tue, Feb 26, 2008 at 11:47 AM, Paul Scott [EMAIL PROTECTED] wrote:
 
   On Tue, 2008-02-26 at 11:44 -0500, Daniel Brown wrote:
I wonder if I can just apt-get the wedding and have it all
automated for me.  ;-P
 
   If only! I remember the stress, and a good friend of mine is gettin'
   hitched on Sat - while I am in Uganda - go figure!
 
   Anyway, congrats, and enjoy the day... (Jokes aside of course)
 
 Thanks, Paul.
 
 All I have to say is, Thank God for Jameson. [1]
 
 1:http://www.jameson.ie/

You know... until I checked the link I thought it was another Jameson...
first name Jenna. Both seem equally applicable ;)

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Ray Hauge

Robert Cummings wrote:

So... using this system, a world where everyone is as holy as can be
would be a world devoid of humans (gotta have sex to reproduce). I don't
think St. Augustine was thinking it through :)

Cheers,
Rob.


Haha.  I've often wondered why Christianity has survived so long because 
of this.  I'm just glad there's a lot of sinners out there, or at least 
people who aren't that crazy :)


--
Ray Hauge
www.primateapplications.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread TG

Then I guess I shouldn't link to Bushmills either.

- Original Message -
From: Robert Cummings [EMAIL PROTECTED]
To: Daniel Brown [EMAIL PROTECTED]
Cc: Paul Scott [EMAIL PROTECTED], Debi Berkowitz [EMAIL PROTECTED], 
tedd [EMAIL PROTECTED], php-general@lists.php.net
Date: Tue, 26 Feb 2008 12:43:05 -0500
Subject: Re: [PHP] How do you send stylized email?

 
 On Tue, 2008-02-26 at 11:53 -0500, Daniel Brown wrote:
  On Tue, Feb 26, 2008 at 11:47 AM, Paul Scott [EMAIL PROTECTED] wrote:
  
On Tue, 2008-02-26 at 11:44 -0500, Daniel Brown wrote:
 I wonder if I can just apt-get the wedding and have it all
 automated for me.  ;-P
  
If only! I remember the stress, and a good friend of mine is gettin'
hitched on Sat - while I am in Uganda - go figure!
  
Anyway, congrats, and enjoy the day... (Jokes aside of course)
  
  Thanks, Paul.
  
  All I have to say is, Thank God for Jameson. [1]
  
  1:http://www.jameson.ie/
 
 You know... until I checked the link I thought it was another Jameson...
 first name Jenna. Both seem equally applicable ;)
 
 Cheers,
 Rob.
 -- 
 ..
 | InterJinn Application Framework - http://www.interjinn.com |
 ::
 | An application and templating framework for PHP. Boasting  |
 | a powerful, scalable system for accessing system services  |
 | such as forms, properties, sessions, and caches. InterJinn |
 | also provides an extremely flexible architecture for   |
 | creating re-usable components quickly and easily.  |
 `'
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Daniel Brown
On Tue, Feb 26, 2008 at 12:43 PM, Robert Cummings [EMAIL PROTECTED] wrote:

  On Tue, 2008-02-26 at 11:53 -0500, Daniel Brown wrote:
   All I have to say is, Thank God for Jameson. [1]
  
   1:http://www.jameson.ie/

  You know... until I checked the link I thought it was another Jameson...
  first name Jenna. Both seem equally applicable ;)

Yeah not so much on my wedding day, Cummings.

Pun absolutely intended.  Thanks for use of your name.  ;-P

-- 
/Dan

Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--; sleep(86400); } ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Robert Cummings

On Tue, 2008-02-26 at 13:14 -0500, Daniel Brown wrote:
 On Tue, Feb 26, 2008 at 12:43 PM, Robert Cummings [EMAIL PROTECTED] wrote:
 
   On Tue, 2008-02-26 at 11:53 -0500, Daniel Brown wrote:
All I have to say is, Thank God for Jameson. [1]
   
1:http://www.jameson.ie/
 
   You know... until I checked the link I thought it was another Jameson...
   first name Jenna. Both seem equally applicable ;)
 
 Yeah not so much on my wedding day, Cummings.
 
 Pun absolutely intended.  Thanks for use of your name.  ;-P

My pr0n agent says you need ot pay me everytime you use my name... and I
am keeping track of occurrences in email headers.

:)

What's really funny is that my wife's last name is Dewar.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Greg Donald
On 2/26/08, Ray Hauge [EMAIL PROTECTED] wrote:
 I'm just glad there's a lot of sinners out there, or at least
 people who aren't that crazy :)

They're called hypocrites.


-- 
Greg Donald
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Manuel Lemos
Hello,

on 02/26/2008 11:53 AM tedd said the following:
 $message = EOT
 Title: This is a title of the Event.
 Time: This the time of the Event.

 Please show up on time.
 EOT

 mail('[EMAIL PROTECTED]' , 'An Event' , $message);

 If so, how do you style it?

 If not, how do you send stylized email?

 The easiest way is this:

 $message = EOT
 span style=color: red
 Title: This is a title of the Event.
 Time: This the time of the Event.
 /span

 Please show up on time.
 EOT

 mail('[EMAIL PROTECTED]' , 'An Event' , $message, 'Content-Type:
 text/html');
 
 Duh!
 
 I should have thought of that.

Be careful. Do not send HTML only messages or else some mail systems
(notably Hotmail for instance) will discard your messages as if they
were spam.

The right solution to send HTML messages is to use multipart/alternative
messages so you can specify an alternative text to show in mail clients
that do not support HTML messages.

It is a bit more complex solution, but if you want all people to get
your message, it is necessary. To simplify the problem you may want to
use a ready to use PHP component that can compose multipart/alternative
messages. I use this popular MIME message composing class. Try the
test_simple_html_mail_message example script for instance.

http://www.phpclasses.org/mimemessage


-- 

Regards,
Manuel Lemos

PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How do you send stylized email?

2008-02-26 Thread Paul Scott

On Tue, 2008-02-26 at 22:52 -0300, Manuel Lemos wrote:
 messages. I use this popular MIME message composing class. Try the
 test_simple_html_mail_message example script for instance.
 
 http://www.phpclasses.org/mimemessage
 
 

Hehe, I was holding my breath for Manuel to come on to this thread!

if($subject === 'something to do with mail')
{
$this-punt('mimemessage', 'phpclasses.org');
}
else {
sleep(86400);
}


;)


--Paul

All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php