spewn
Programmer
- May 7, 2001
- 1,034
i'm having a time trying to figure out how to pass a colon (no pun!) through to the body of my mail, using sendmail.
unless i put the actual colon in the body, the body doesn't display at all.
the above shows the body as blank. i can't figure it out.
this works, however:
man, this doesn't make sense to me. can anyone help?
thanks!
- g
unless i put the actual colon in the body, the body doesn't display at all.
Code:
$e='[URL unfurl="true"]http://joeblow.com';[/URL]
open (MAIL, "|/usr/sbin/sendmail -t") || return 0;
select (MAIL);
print << "EOF";
To: Joe Blow <joe\@blow.com>
From: My Company <my\@company.com>
Subject: My Subject Here
$e
EOF
close (MAIL);
select (STDOUT);
the above shows the body as blank. i can't figure it out.
this works, however:
Code:
open (MAIL, "|/usr/sbin/sendmail -t") || return 0;
select (MAIL);
print << "EOF";
To: Joe Blow <joe\@blow.com>
From: My Company <my\@company.com>
Subject: My Subject Here
[URL unfurl="true"]http://joeblow.com[/URL]
EOF
close (MAIL);
select (STDOUT);
man, this doesn't make sense to me. can anyone help?
thanks!
- g