Gossamer Forum
Home : Products : DBMan : Discussions :

Subject being put in reply email field!

Quote Reply
Subject being put in reply email field!
Hi,
I have a new problem! I have this line in html.pl

my (%rec) = &get_record($in{$db_key}); open (MAIL, "$mailprog") || &cgierr("Can't start mail program"); print MAIL "To: $admin_email\n"; print MAIL "From: $rec{'EMAIL'}"; print MAIL "Subject: $html_title New Record\n\n"; foreach $col (@db_cols) { print MAIL "$col$rec{$col}|"; } close (MAIL);

But when I recieve the email I get the subject in the reply email address field! i.e. me@me.comSubject <tile header>
Can anyone help me with this?
Thanks in advance
Ben

Quote Reply
Re: Subject being put in reply email field! In reply to
You're missing the \n after the E-mail field. make it so that it's got
print MAIL "From: $rec{'EMAIL'}\n";

that'll fix it up for ya

Conor Treacy
-----
www.HandsonWebDesign.com