Gossamer Forum
Home : Products : DBMan : Customization :

Send Private Email Mod doesn't work

Quote Reply
Send Private Email Mod doesn't work
I install the above scripts , but whenever I try to send the email, it says "cannot find the email for this person " or something like that, and the command like $rec{'Name'} doesn't work, it appears nothing on the email form. What did I miss?

Please help. Thanks
Quote Reply
Re: Send Private Email Mod doesn't work In reply to
I forgot to put more info:
I use the private email mod, what's new mod and long/short display mode from JPDeni's
mods (very cool)The files can be seen at:
http://www.anteromas.com/tmp/html.pl.txt
http://www.anteromas.com/tmp/default.cfg.txt

You can try to post the message at:
http://www.anteromas.com/cgi-bin/dbase/db.cgi

Please help...
Quote Reply
Re: Send Private Email Mod doesn't work In reply to
At first check that you use the same name/typing in your forms for your email field in db.cfg, in html.pl in sub html_record and sub html_record_from - check out that this is the same as the attached code for the mod in your *.cfg file

mod code:
# Fieldname that contains the email address #of the user:
$db_email_field = 'your_email_field_name_here';


If anything is correct pay attention in the mod for the $in{'email'}, don't change this it's for your input in the form as sending adress the adressyou will send to is in $db_email_field, so don't mix these things.


I use in my html_record the following code from jpdenis mod with "clickable email adress and url"

it looks like this:
sub html_record_long {
#----------------------------------------------------------------
my (%rec) = @_;
$rec{$db_key} =~ s/<?.B>//g;
$url{'E-mail'} = $rec{'E-mail'};
$url{'E-mail'} =~ s/<\/?B>//g;
$url{'INTERNET'} = $rec{'INTERNET'};
$url{'INTERNET'} =~ s/<\/?B>//g;

maybe this is a way to run the mod...(?)

Another one: The problem could caused by the ftp upload, mostly I need 2 or 3 uploads to get a complete uploaded file, remember for uploading to check ascii and not binary upload.

hope this will help,
bye

bek


Quote Reply
Re: Send Private Email Mod doesn't work In reply to
maybe you should put the code in your cfg directly in the file and url section, maybe this helps,

bek
Quote Reply
Re: Send Private Email Mod doesn't work In reply to
Thank you bek,

I found out that I made mistake in figuring out the .cfg file.
this is my mistake:
%db_def = (
'ID' => [1, 'numer',...

I started the the db_def with "1" instead of "0". Now everything is working fine except for limiting the character for the output:
http://www.gossamer-threads.com/scripts/forum/resources/Forum12/HTML/001486.html

Thanks very much.