Updated CMS code.
Separated code to have a lib and an example. Improved design, fixed a few issues related to folder location. This is still experimental and require more work to be really friendly to use.
This commit is contained in:
34
draft/application/cms/src/notification/cms_sendmail_mailer.e
Normal file
34
draft/application/cms/src/notification/cms_sendmail_mailer.e
Normal file
@@ -0,0 +1,34 @@
|
||||
note
|
||||
description : "[
|
||||
CMS_MAILER using sendmail as mailtool
|
||||
]"
|
||||
author : "$Author$"
|
||||
date : "$Date$"
|
||||
revision : "$Revision$"
|
||||
|
||||
class
|
||||
CMS_SENDMAIL_MAILER
|
||||
|
||||
inherit
|
||||
CMS_EXTERNAL_MAILER
|
||||
redefine
|
||||
default_create
|
||||
end
|
||||
|
||||
create
|
||||
default_create
|
||||
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
default_create
|
||||
do
|
||||
Precursor
|
||||
make ("/usr/sbin/sendmail", <<"-t">>)
|
||||
if not is_available then
|
||||
make ("/usr/bin/sendmail", <<"-t">>)
|
||||
end
|
||||
set_stdin_mode (True, "%N.%N%N")
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user