Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Email after modify

Quote Reply
Email after modify
Hello

My sub=
Code:
sub {
my $tags = shift;
my $home = $tags->{home};
my $hsh = $home->{hsh} || $tags->{values};
use GT::Mail;
my $msg = "Date $hsh->{date} ";
GT::Mail->send (
sendmail => $home->{glb_cfg}->{db_mail_path},
to => $home->{user}->{Email},
from => 'my@domain.de',
subject => 'Reply',
'Content-type' => 'text/html',
msg => $msg
) or die "Error: $GT::Mail::error";
}

how to add the values from Record to email
$hsh->{date} are in the email empty

hoefti
linktobuy Web Directory
Ratgeber Recht
Quote Reply
Re: [hoefti] Email after modify In reply to
Hi,

All the values from a record are available in $tags var so you may want to use $tags->{date} instead.

Hope this helps,
Jean
Gossamer Threads Inc.
Quote Reply
Re: [jean] Email after modify In reply to
Hello jean

Thanks for your help, its works

greeting hoefti
linktobuy Web Directory
Ratgeber Recht
Quote Reply
Re: [hoefti] Email after modify In reply to
Hello jean

Sorry but it works not Blush

The email was send to the Admin not to the user who add the record. My User cant modify the own records, but when i modify a record they must be notify.
Please help me to send a emal to the User who has add the record.

greeting hoefti
linktobuy Web Directory
Ratgeber Recht
Quote Reply
Re: [hoefti] Email after modify In reply to
hello

im stupid, it was so easy
in add-html - add code
Code:
<input type="hidden" name="adress" value="<%Email%>">

even in modify_search_result.html modify_form and modify_result

So "adress" ist available in
Code:
to => $tags->{adress},

Now the emails was send to the user who has add the record

thanks fpr help

hoefti
linktobuy Web Directory
Ratgeber Recht