Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lolo888
ISPConfig 3
Commits
ecce33ad
Commit
ecce33ad
authored
Sep 25, 2012
by
mcramer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update: SMTP mail class
parent
d93be923
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
interface/lib/classes/ispcmail.inc.php
interface/lib/classes/ispcmail.inc.php
+5
-2
No files found.
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
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