Thanks everyone for your suggestions. I found a very eloquent solution:
An example is as follows:
Notice the $message = <<<EOF
I didn't know one could do this - very convenient!
<?php
$to = "[EMAIL PROTECTED]";
$from = "[EMAIL PROTECTED]";
$subject = "This is a test email";
$message = <<<EOF
<html>
<body bgcolor="#ffffff">
<p align="center">
<b>Hello World!</b>
</p>
</body>
</html>
EOF;
$headers = "From: $from\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($to, $subject, $message, $headers);
if ($success)
echo "The email to $to from $from was successfully sent";
else
echo "An error occurred when sending the email to $to from $from";
?>
On Thu, 10 Feb 2005 20:18:48 -0700, Scott Jackman
<[EMAIL PROTECTED]> wrote:
> Actually, a space is encoded as %20. The %22 is actually an encoded
> quote; which happens to be the next character in the sequence.
> Perhaps the trailing slash will solve your problem.
>
>
> On Thu, 10 Feb 2005 19:58:11 -0700, Kenneth Burgener <[EMAIL PROTECTED]>
> wrote:
> > Merrill Oveson wrote:
> > > Everything works except when I recieve the email and click on the link I
> > > get
> > >
> > > http://www.strategisfinancial.com%22/
> > >
> > > what's with the %22, and how do I get rid of it?
> > >
> >
> > %22 is the encoding for a space.
> >
> > The code you gave appears to be correct. I copied it and pasted and it
> > works great on my server. Somehow a space is getting added to your code.
> >
> > Kenneth
> > [EMAIL PROTECTED]
> >
> > .===================================.
> > | This has been a P.L.U.G. mailing. |
> > | Don't Fear the Penguin. |
> > | IRC: #utah at irc.freenode.net |
> > `==================================='
> >
>
.===================================.
| This has been a P.L.U.G. mailing. |
| Don't Fear the Penguin. |
| IRC: #utah at irc.freenode.net |
`==================================='