Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
But again, \n comes back as text, not a line break. I am using Outlook Express and I know it's not sending in HTML (atleast I think not). How can I get line breaks to appear in all emails?
Thanks monks!
if ($email ne "") { $ourmessage =~ s/<br>/\\n/g; open (MAIL, "|$sendmail -t") or die "Cannot access mail"; print MAIL "To: $mail\n"; print MAIL "From: $adminmail\n"; print MAIL "Subject: Thank you\n\n"; print MAIL "$ourmessage\n"; close (MAIL); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: email not line breaking properly
by graff (Chancellor) on Sep 27, 2004 at 05:16 UTC | |
|
Re: email not line breaking properly
by sulfericacid (Deacon) on Sep 27, 2004 at 04:47 UTC |