mailing in php
moveson at gmail.com
Fri Feb 11 08:56:28 MST 2005
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!
$to = "johndoe at fakedomain.com";
$from = "janedoe at anotherfakedomain.com";
$subject = "This is a test email";
$message = <<<EOF
$headers = "From: $from\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($to, $subject, $message, $headers);
echo "The email to $to from $from was successfully sent";
echo "An error occurred when sending the email to $to from $from";
On Thu, 10 Feb 2005 20:18:48 -0700, Scott Jackman
<scott.jackman at gmail.com> 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 <kenneth at uvlug.org> 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
> > kenneth at uvlug.org
> > .===================================.
> > | This has been a P.L.U.G. mailing. |
> > | Don't Fear the Penguin. |
> > | IRC: #utah at irc.freenode.net |
> > `==================================='
More information about the PLUG