Index: openacs-4/packages/webmail-system/tcl/webmail-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/webmail-system/tcl/webmail-procs.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/webmail-system/tcl/webmail-procs.tcl 15 Jan 2009 21:39:48 -0000 1.2 +++ openacs-4/packages/webmail-system/tcl/webmail-procs.tcl 2 Dec 2013 09:05:28 -0000 1.3 @@ -294,13 +294,18 @@ ad_proc -public mail_send { sender recipients subject body } { Sends an email over Sendmail installed locally } { - ns_log debug "WEBMAIL: Starting the ns_sendmail command..." + ns_log debug "WEBMAIL: Starting the sendmail command..." - if [catch { ns_sendmail $recipients $sender $subject $body } errmsg] { + if [catch { acs_mail_lite::send \ + -to_addr [split $recipients ,] \ + -from_addr $sender \ + -subject $subject \ + -body $body + } errmsg] { ns_log debug "WEBMAIL: Email to $recipients failed: $errmsg" } - ns_log debug "WEBMAIL: Ending the ns_sendmail command..." + ns_log debug "WEBMAIL: Ending the sendmail command..." }