Index: openacs-4/packages/acs-admin/www/send-email.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/send-email.tcl,v diff -u -r1.3 -r1.3.4.1 --- openacs-4/packages/acs-admin/www/send-email.tcl 10 Jan 2007 21:21:59 -0000 1.3 +++ openacs-4/packages/acs-admin/www/send-email.tcl 14 May 2009 12:54:38 -0000 1.3.4.1 @@ -23,9 +23,9 @@ return_url:onevalue } -if {[catch {ns_sendmail $email $email_from $subject $message} errmsg]} { - ad_return_error $error_subject "$error_message: -
" +if {[catch {acs_mail_lite::send -send_immediately -to_addr $email -from_addr $email_from -subject $subject -body $message} errmsg]} { + ad_return_error $error_subject "[ad_quotehtml $errmsg]
$error_message
+[ad_quotehtml $errmsg]
+if [catch {acs_mail_lite::send -send_immediately -to_addr $email -from_addr $admin_email -subject $subject -body $message} errmsg] { + ad_return_error "Mail Failed" "The system was unable to send email. Please notify the user personally. This problem is probably caused by a misconfiguration of your email system. Here is the error:
+" return } Index: openacs-4/packages/acs-admin/www/users/user-add-3.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/users/user-add-3.xql,v diff -u -r1.3 -r1.3.22.1 --- openacs-4/packages/acs-admin/www/users/user-add-3.xql 29 Apr 2001 00:47:48 -0000 1.3 +++ openacs-4/packages/acs-admin/www/users/user-add-3.xql 14 May 2009 12:54:38 -0000 1.3.22.1 @@ -1,12 +1,10 @@[ad_quotehtml $errmsg] -" +
- Index: openacs-4/packages/acs-admin/www/users/user-batch-add-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/users/user-batch-add-2.tcl,v diff -u -r1.5 -r1.5.4.1 --- openacs-4/packages/acs-admin/www/users/user-batch-add-2.tcl 10 Jan 2007 21:22:00 -0000 1.5 +++ openacs-4/packages/acs-admin/www/users/user-batch-add-2.tcl 14 May 2009 12:54:38 -0000 1.5.4.1 @@ -80,11 +80,11 @@ regsub -all "<$key>" $sub_message $value sub_message } - if {[catch {ns_sendmail "$email" "$from" "$subject" "$sub_message"} errmsg]} { - ad_return_error "Mail Failed" "The system was unable to send email. Please notify the user personally. This problem is probably caused by a misconfiguration of your email system. Here is the error: -- - +- select email from -parties where party_id = :admin_user_id - -+ + select email from parties where party_id = :admin_user_id + ++ if {[catch {acs_mail_lite::send -send_immediately -to_addr $email -from_addr $from -subject $subject -body $sub_message} errmsg]} { + ad_return_error "Mail Failed" "The system was unable to send email. Please notify the user personally. This problem is probably caused by a misconfiguration of your email system. Here is the error:
+" return }[ad_quotehtml $errmsg] -" +