Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acs-mail-lite
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
acs-mail-lite
Commits
f7f58a15
Commit
f7f58a15
authored
Jun 16, 2012
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MM-20120616-11:17
parent
70cd3aa2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
5 deletions
+45
-5
acs-mail-lite-procs.tcl
tcl/acs-mail-lite-procs.tcl
+45
-5
No files found.
tcl/acs-mail-lite-procs.tcl
View file @
f7f58a15
...
...
@@ -544,11 +544,51 @@ namespace eval acs_mail_lite {
ns_log Notice
"acs-mail-lite::send:
$notice
\n\n
**********
\n
Enveloppe sender:
$originator
\n\n
$packaged
\n
**********"
}
else
{
acs_mail_lite::smtp -multi_token
$tokens
\
-headers
$headers
_list
\
-originator
$originator
global tcl_platform
set platform
[
lindex
$tcl
_platform
(
platform
)
0
]
# Added by M. Martignano on 15/06/2012 to interface with
# a SMTP server on Windows
if
{
$platform
==
"windows"
}
{
# Get the SMTP Parameters
set smtp
[
parameter::get -parameter
"SMTPHost"
\
-package_id
$mail
_package_id
\
-default
[
ns_config ns/parameters mailhost
]]
if
{
$smtp
eq
""
}
{
set smtp localhost
}
set timeout
[
parameter::get -parameter
"SMTPTimeout"
\
-package_id
$mail
_package_id
\
-default
[
ns_config ns/parameters smtptimeout
]]
if
{
$timeout
eq
""
}
{
set timeout 60
}
set smtpport
[
parameter::get -parameter
"SMTPPort"
\
-package_id
$mail
_package_id
\
-default 25
]
set smtpuser
[
parameter::get -parameter
"SMTPUser"
\
-package_id
$mail
_package_id
]
set smtppassword
[
parameter::get -parameter
"SMTPPassword"
\
-package_id
$mail
_package_id
]
# set mm_body
[
string
map
{
"
\n
"
"<br />"
}
$body
]
# set mm_cmd
"exec /bin/blat - -html -subject
\"
$subject
\"
-body
\"
$mm
_body
\"
-f
$from
_addr -to
$to
_addr -server
$smtp
-port
$smtpport
-u
$smtpuser
-pw
$smtppassword
-ti
$timeout
"
set mm_cmd
"exec /bin/blat - -subject
\"
$subject
\"
-body
\"
$body
\"
-f
$from
_addr -to
$to
_addr -server
$smtp
-port
$smtpport
-u
$smtpuser
-pw
$smtppassword
-ti
$timeout
"
ns_log Debug
"mm_cmd ------>
$mm
_cmd"
if
{
[
catch
{
eval
$mm
_cmd
}
err_msg
]
}
{
ns_log Debug
"------>
$err
_msg"
# Nothing. We check if BLAT was successfull.
}
}
else
{
acs_mail_lite::smtp -multi_token
$tokens
\
-headers
$headers
_list
\
-originator
$originator
}
# Close all mime tokens
mime::finalize
$tokens
-subordinates all
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment