Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
ecce33ad
Commit
ecce33ad
authored
Sep 25, 2012
by
mcramer
Browse files
Update: SMTP mail class
parent
d93be923
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/ispcmail.inc.php
View file @
ecce33ad
...
...
@@ -492,6 +492,9 @@ class ispcmail {
public
function
send
(
$recipients
)
{
if
(
!
is_array
(
$recipients
))
$recipients
=
array
(
$recipients
);
if
(
$this
->
use_smtp
==
true
)
$this
->
_crlf
=
"
\r\n
"
;
else
$this
->
_crlf
=
"
\n
"
;
$this
->
create
();
$subject
=
''
;
...
...
@@ -547,10 +550,10 @@ class ispcmail {
if
(
$recipname
&&
!
is_numeric
(
$recipname
))
$this
->
setHeader
(
'To'
,
$recipname
.
' <'
.
$recip
.
'>'
);
else
$this
->
setHeader
(
'To'
,
$recip
);
$mail_content
=
'To: '
.
$this
->
getHeader
(
'To'
)
.
$this
->
_crlf
;
$mail_content
=
'Subject: '
.
$enc_subject
.
$this
->
_crlf
;
$mail_content
.
=
'To: '
.
$this
->
getHeader
(
'To'
)
.
$this
->
_crlf
;
if
(
$this
->
getHeader
(
'Bcc'
)
!=
''
)
$mail_content
.
=
'Bcc: '
.
$this
->
_encodeHeader
(
$this
->
getHeader
(
'Bcc'
),
$this
->
mail_charset
)
.
$this
->
_crlf
;
if
(
$this
->
getHeader
(
'Cc'
)
!=
''
)
$mail_content
.
=
'Cc: '
.
$this
->
_encodeHeader
(
$this
->
getHeader
(
'Cc'
),
$this
->
mail_charset
)
.
$this
->
_crlf
;
$mail_content
.
=
'Subject: '
.
$enc_subject
.
$this
->
_crlf
;
$mail_content
.
=
implode
(
$this
->
_crlf
,
$headers
)
.
$this
->
_crlf
.
$this
->
_crlf
.
$this
->
body
;
fputs
(
$this
->
_smtp_conn
,
$mail_content
.
$this
->
_crlf
.
'.'
.
$this
->
_crlf
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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