Gossamer Forum
Home : Products : DBMan : Customization :

Reply but no creating password

Quote Reply
Reply but no creating password
Hallo everyone,

Do anybody know how i sent a 'thank you' reply to a new subcriber but
i don't want to use the secure password mailer. I have massmailer installed
and the friendly_html.pl

I'm testing on a local database.

This is what i wants: When a new user makes a accountname (user and
password) the password don't have to send to the e-mailaddress only
created in the database.

Thank you,

Gerard
The Netherlands
Quote Reply
Re: Reply but no creating password In reply to
So you would like the mail sent after the user adds a record? (It would have to be then, because that's the only time you would have the email address.)

You've already got the $mailprog and $admin_email, so, all you have to do is --

in sub html_add_success, before

$page_title = "Record Added";

add

Code:

%rec=&get_record($in{$db_key});
open (MAIL, "$mailprog") || &cgierr("unable to open mail program");
print MAIL "To: $rec{$db_email_field}\n";
print MAIL "From: $admin_email\n";
print MAIL "Subject: your subject line\n\n";
print MAIL "-" x 75 . "\n\n";
print MAIL "Your message;
close MAIL;
Format your message just as you would type it in, including using the "Enter" key at the end of lines and
paragraphs.

If you want to, you can also change

&html_record(&get_record($in{$db_key}));

to

&html_record(%rec);

That way the script only has to pull the record from the .db file once. It won't really make a visible difference unless you have a very large .db file.

I want to thank you for telling me what mods you had already installed. That helped me a great deal.



JPD
Quote Reply
Re: Reply but no creating password In reply to
Thank you.

Ik try it and let you know



Gerard
The Netherlands
Quote Reply
Re: Reply but no creating password In reply to
Hello,

I have try the changes in the sub but it did'n work.
Massmailer works perfect, making a new account also.
Making a new record also perfect, but no sending 'Thank you'reply after completing the record.

I have made the right changes. What could be wrong?


Gerard
The Netherlands
Quote Reply
Re: Reply but no creating password In reply to
Is the email not being sent? Or being sent to the wrong person?

This is something that I've posted probably 20 times and I know the code is sound.

JPD
Quote Reply
Re: Reply but no creating password In reply to
The email is not bieng sent.
Everything else seems to been oke.

So i don't know what went wrong.

Gerard
The Netherlands
Quote Reply
Re: Reply but no creating password In reply to
I will probably need to look at your html.pl file, then. Copy it to a web-accessible directory (one where you would place .html files) and rename it to html_pl.txt. Then come back here and tell me where I can find it. I'll see if I can figure out where the problem is.


JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Reply but no creating password In reply to
Hello JPDeni,

You can find the html.pl as html.txt at
http://www.showband75.nl/dbman/html.txt
I have translate it to Dutch, but that must not be a problem i think.

Only the commands are in dutch the script itself is still in english.

Thank you

Gerard
The Netherlands
Quote Reply
Re: Reply but no creating password In reply to
I am very sorry. I really messed up. Blush The line

%rec=$in{$db_key};

should be

%rec=&get_record($in{$db_key});

What was I thinking!?!?!?!

(I'll change it in the original so others don't get confused.)

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Reply but no creating password In reply to
Hello JPDeni,

I have made the changes and .......
It works HipHipHip

Thank you for you're help
I will go further now.

Will i send u a complete dutch copy of db.cgi and html.pl (friendly) ?

Again Thanks

Greetings,