Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
915c67dc
Commit
915c67dc
authored
19 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Ajout option caché pour désactiver tout mail (pour les systèmes sans sendmail)
parent
45f507ff
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/lib/CMailFile.class.php
+16
-11
16 additions, 11 deletions
htdocs/lib/CMailFile.class.php
with
16 additions
and
11 deletions
htdocs/lib/CMailFile.class.php
+
16
−
11
View file @
915c67dc
<?php
/* Copyright (C) 2000-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
* Copyright (C) 2004-200
5
Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-200
6
Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -159,6 +159,8 @@ class CMailFile
*/
function
sendfile
()
{
global
$conf
;
$headers
=
$this
->
smtp_headers
.
$this
->
mime_headers
;
$message
=
$this
->
text_body
.
$this
->
text_encoded
;
...
...
@@ -176,17 +178,20 @@ class CMailFile
$errorlevel
=
error_reporting
();
//error_reporting($errorlevel ^ E_WARNING); // Dsactive warnings
if
(
$this
->
errors_to
)
if
(
!
$conf
->
global
->
MAIN_DISABLE_ALL_MAILS
)
{
dolibarr_syslog
(
"CMailFile::sendfile with errorsto : "
.
$this
->
errors_to
);
$res
=
mail
(
$this
->
addr_to
,
$this
->
subject
,
stripslashes
(
$message
),
$headers
,
"-f"
.
$this
->
errors_to
);
}
else
{
dolibarr_syslog
(
"CMailFile::sendfile"
);
$res
=
mail
(
$this
->
addr_to
,
$this
->
subject
,
stripslashes
(
$message
),
$headers
);
}
//if (! $res) $this->error=
if
(
$this
->
errors_to
)
{
dolibarr_syslog
(
"CMailFile::sendfile with errorsto : "
.
$this
->
errors_to
);
$res
=
mail
(
$this
->
addr_to
,
$this
->
subject
,
stripslashes
(
$message
),
$headers
,
"-f"
.
$this
->
errors_to
);
}
else
{
dolibarr_syslog
(
"CMailFile::sendfile"
);
$res
=
mail
(
$this
->
addr_to
,
$this
->
subject
,
stripslashes
(
$message
),
$headers
);
}
//if (! $res) $this->error=
}
error_reporting
(
$errorlevel
);
// Ractive niveau erreur origine
//$this->write_to_file();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment