When a user has add a record then I will send him the just entered data as confirmation. Now I have the problem that I think two lines of my script are not working. First, I receive no e-mail becaus I think this line is not ok:
if ($in{'Email'}) {
'Email' is a field in my database where the user entres his e-mail address. I think in "sub add_record" this statement is not true? I will only send a e-mail to the user if he has entered a e-mail address.
Second, to open SENDMAIL I use want use this line:
open (MAIL, "|$mailprog $in{'Email'}");
If I have this line in my script then this will not run. Error 500.
When I edit the line to this:
open (MAIL, "|$mailprog info\@netdate.ch");
then the script is running.
Has everyone a idea what I should do?
Thanks
Rene
if ($in{'Email'}) {
'Email' is a field in my database where the user entres his e-mail address. I think in "sub add_record" this statement is not true? I will only send a e-mail to the user if he has entered a e-mail address.
Second, to open SENDMAIL I use want use this line:
open (MAIL, "|$mailprog $in{'Email'}");
If I have this line in my script then this will not run. Error 500.
When I edit the line to this:
open (MAIL, "|$mailprog info\@netdate.ch");
then the script is running.
Has everyone a idea what I should do?
Thanks
Rene