Gossamer Forum
Home : Products : DBMan : Discussions :

Removing Field name from e-mail

Quote Reply
Removing Field name from e-mail
Hi,
When dbman sends the e-mail to me, after the user has filled it in, it always has the fieldname followed by the value. i.e. |field1value1|field2value2| etc, is there not a way for it to just show the values, like |value1|value2| etc.
If anyone can help me on this i'd be very greatful!
Ben

Quote Reply
Re: Removing Field name from e-mail In reply to
You could do something up like the following:

open (MAIL, "$mailprog") or &cgierr("unable to open mail program");
print MAIL "$rec{'field1'}|$rec{'filed2'}|$rec{'field3'}";
close (MAIL);

I have mine set up to only send me certain fields so it's set like the following:

print MAIL "Action Taken: $rec{'Action Taken'}\n";
print MAIL "Equipment Status: $rec{'System Status'}\n";
print MAIL "Trouble Status: $rec{'Trouble Status'}\n";
print MAIL "Reported By: $rec{'Reported By'}\n";

But I'm sure the other will work just fine for you (IF that's what you're looking for)

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