Gossamer Forum
Home : Products : DBMan : Customization :

Forward function

Quote Reply
Forward function
Hi, I like add in the e-mail a function like &html_record. I change the forward mod to send html e-mail, at the moment my solution is this

print MAIL "Content-type:text/html\n";
print MAIL "To: $in{'to_email'}\n";
print MAIL "From: $in{'email'}\n";
print MAIL "Subject: $in{'subject'}\n\n";
print MAIL <<to_the_end;
<html>
<head>
<title>$title</title>
</head>
<body>
<font face="Verdana,Geneva,Arial,Helvetica,sans-serif" size="2">$in{'emailmessage'}</font>



<iframe src="$db_script_url?db=$db_setup&uid=$db_uid&record=$rec{'record'}&view_send_record=1" name="record" id="record" width="605" height="450" marginwidth="0" marginheight="0" frameborder="0"></iframe><ilayer left="0" top="0" height="450" id="record"></ilayer>

<layer src="$db_script_url?db=$db_setup&uid=$db_uid&record=$rec{'record'}&view_send_record=1" visibility=hidden id=record width=605 onload="moveToAbsolute(record.pageX,record.pageY); paquete.clip.height=450;visibility='show';"></layer>

</body>
</html>
to_the_end
close (MAIL);

but the problem is that I can't view the e-mail offline.

I like know if exist the form to cut all this and add only send the content of my &html_record (a complete html page)

Thanks
Carca