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
037f2b12
Commit
037f2b12
authored
19 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Qual: Fusion des classes en doublons dolibarrmail et CMailFile dans la meme "CMailFile".
parent
647731fd
Branches
Branches containing commit
Tags
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
+4
-3
4 additions, 3 deletions
htdocs/lib/CMailFile.class.php
with
4 additions
and
3 deletions
htdocs/lib/CMailFile.class.php
+
4
−
3
View file @
037f2b12
...
...
@@ -40,7 +40,7 @@
\class CMailFile
\brief Classe d'envoi de mails et pices jointes. Encapsule mail() avec d'ventuel attachements.
\remarks Usage:
\remarks $mailfile = new CMailFile($subject,$sendto,$replyto,$message,$file
name
,$mimetype);
\remarks $mailfile = new CMailFile($subject,$sendto,$replyto,$message,$file
path
,$mimetype
,$filename,$cc,$ccc
);
\remarks $mailfile->sendfile();
*/
...
...
@@ -70,7 +70,9 @@ class CMailFile
\param addr_cc email cc
\param addr_bcc email bcc
*/
function
CMailFile
(
$subject
,
$to
,
$from
,
$msg
,
$filename_list
,
$mimetype_list
,
$mimefilename_list
,
$addr_cc
=
""
,
$addr_bcc
=
""
)
function
CMailFile
(
$subject
,
$to
,
$from
,
$msg
,
$filename_list
=
array
(),
$mimetype_list
=
array
(),
$mimefilename_list
=
array
(),
$addr_cc
=
""
,
$addr_bcc
=
""
)
{
dolibarr_syslog
(
"CMailFile::CMailfile: from=
$from
, filename_list[0]=
$filename_list[0]
, mimetype_list[0]=
$mimetype_list[0]
mimefilename_list[0]=
$mimefilename_list[0]
"
);
...
...
@@ -125,7 +127,6 @@ class CMailFile
}
$out
=
$out
.
"--"
.
$this
->
mime_boundary
.
"--"
.
"
\n
"
;
return
$out
;
// added -- to notify email client attachment is done
}
...
...
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