Hi! Just one quick question on the archive mod. I'm trying to get it to email to the user that his record has been archived. I have tried to do the coding my self by copying the following to sub_html_archive_success:
if ($rec{'Status'} eq 'Graduated') {
open (MAIL, "$mailprog") or &cgierr("unable to open mail program");
print MAIL "To: $rec{$db_email_field}\n";
print MAIL "From: $admin_email\n";
print MAIL "Subject: Your Record at $html_title has been archived by the administrators\n\n";
print MAIL "Congradulations! You have graduated from AES Academy. Your record has been archived for future references.\n";
print MAIL "Your record at $html_title was archived by $rec{'Realname'}:\n\n";
foreach $column (@db_cols) {
print MAIL "$column: $rec{$column}\n";
}
print MAIL "\n\n";
close MAIL;
}
else {
open (MAIL, "$mailprog") or &cgierr("unable to open mail program");
print MAIL "To: $rec{$db_email_field}\n";
print MAIL "From: $admin_email\n";
print MAIL "Subject: Your Record at $html_title has been archived by the administrators\n\n";
print MAIL "I'm sorry to inform you that you have not met the graduation requirements of AES Academy. You record has been archived for furture references. We hope that you will join us again.\n";
print MAIL "Your record at $html_title was archived by $rec{'Realname'}:\n\n";
foreach $column (@db_cols) {
print MAIL "$column: $rec{$column}\n";
}
print MAIL "\n\n";
close MAIL;
}
But it just isn't email to the user. I assume that it's because the record is no longer in the database but was transferred to another database. Do you have any idea as to how to do what I need it to do?
Also, do you know of any scripts that will autogenerate a random number and then write it to the .pass file. The random number need not be encrypted nor need it need to be track. Actually, I was thinking of using the random number that would be generated automatically when a user sign up. Of course the user won't be able to see the number. This number would then be sent to the user via email once his record has been validated by admin.
The purpose of this number would be to add security to the forget password mod. Instead of only asking the user to enter in his email or username, he would also need to enter the random number in order for the new password to be sent to him.
I hope this isn't too much a bother.
Julian
if ($rec{'Status'} eq 'Graduated') {
open (MAIL, "$mailprog") or &cgierr("unable to open mail program");
print MAIL "To: $rec{$db_email_field}\n";
print MAIL "From: $admin_email\n";
print MAIL "Subject: Your Record at $html_title has been archived by the administrators\n\n";
print MAIL "Congradulations! You have graduated from AES Academy. Your record has been archived for future references.\n";
print MAIL "Your record at $html_title was archived by $rec{'Realname'}:\n\n";
foreach $column (@db_cols) {
print MAIL "$column: $rec{$column}\n";
}
print MAIL "\n\n";
close MAIL;
}
else {
open (MAIL, "$mailprog") or &cgierr("unable to open mail program");
print MAIL "To: $rec{$db_email_field}\n";
print MAIL "From: $admin_email\n";
print MAIL "Subject: Your Record at $html_title has been archived by the administrators\n\n";
print MAIL "I'm sorry to inform you that you have not met the graduation requirements of AES Academy. You record has been archived for furture references. We hope that you will join us again.\n";
print MAIL "Your record at $html_title was archived by $rec{'Realname'}:\n\n";
foreach $column (@db_cols) {
print MAIL "$column: $rec{$column}\n";
}
print MAIL "\n\n";
close MAIL;
}
But it just isn't email to the user. I assume that it's because the record is no longer in the database but was transferred to another database. Do you have any idea as to how to do what I need it to do?
Also, do you know of any scripts that will autogenerate a random number and then write it to the .pass file. The random number need not be encrypted nor need it need to be track. Actually, I was thinking of using the random number that would be generated automatically when a user sign up. Of course the user won't be able to see the number. This number would then be sent to the user via email once his record has been validated by admin.
The purpose of this number would be to add security to the forget password mod. Instead of only asking the user to enter in his email or username, he would also need to enter the random number in order for the new password to be sent to him.
I hope this isn't too much a bother.
Julian