[nycphp-talk] Email Pain
(Margaret) Michele Waldman
mmwaldman at optonline.net
Sat Aug 9 22:38:02 EDT 2008
Folks,
I'm working with this mail function again.
Unhappily.
The mail message is created using data off of an html form using radio
buttons, selects, text input, etc.
The oddest thing is happening. Sometimes newlines are ignored.
Where formated like this:
$message = @<<<END
This is field 1: $field1
This is field 2: $field2
This is field 3: $field3
This is field 4: $field4
END;
Or like this:
$message = "This is field 1:".$field1."\n";
$message .= "This is field 2:".$field2."\n";
$message .= "This is field 3:".$field3."\n";
$message .= "This is field 4:".$field4."\n";
The message might look like this:
This is field 1: data
This is field 2: data This is field 3: data
This is field 4: $field4
The only think I could figure out to do was put a \t after $field2 to force
the newline. Nothing else I did seem to work. The data doesn't appear to
have trailing garage either.
Any ideas?
Margaret Michele
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20080809/3c33dfb0/attachment.html>
More information about the talk
mailing list