Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
phpmailer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
phpmailer
Commits
5f5459d0
Commit
5f5459d0
authored
Jul 07, 2010
by
smk-ka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#764448
by smk-ka: Fixed sending more than one message for certain server configurations.
parent
4c2460be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
CHANGELOG.txt
CHANGELOG.txt
+4
-0
includes/phpmailer.class.inc
includes/phpmailer.class.inc
+12
-5
No files found.
CHANGELOG.txt
View file @
5f5459d0
...
...
@@ -32,6 +32,10 @@ by smk-ka: Provide more user-friendly error messages.
#686994 by sun, smk-ka: Restored compatibility with PHPMailer 2.x library.
#675388 by smk-ka: Fixed unrecognized character in regular expression for PHP
versions < 5.2.2.
#607204 by dagmar, smk-ka: Fixed unable to reply to e-mails sent via Google
Mail. Added an option to always set a "Reply-To" address.
#764448 by smk-ka: Fixed sending more than one message for certain server
configurations.
PHPMailer 6.x-2.1, 2009-06-10
...
...
includes/phpmailer.class.inc
View file @
5f5459d0
...
...
@@ -59,8 +59,13 @@ class DrupalPHPMailer extends PHPMailer {
try
{
$result
=
parent
::
SmtpSend
(
$header
,
$body
);
// Close connection when not using SMTP keep-alive.
if
(
!
$this
->
SMTPKeepAlive
)
{
$this
->
SmtpClose
();
}
}
catch
(
phpmailerException
$e
)
{}
catch
(
phpmailerException
$e
xception
)
{}
if
(
$this
->
SMTPDebug
)
{
if
(
$debug
=
ob_get_contents
())
{
...
...
@@ -72,9 +77,9 @@ class DrupalPHPMailer extends PHPMailer {
// Reinitialize properties.
$this
->
Reset
();
if
(
isset
(
$e
))
{
if
(
isset
(
$e
xception
))
{
// Pass exception to caller.
throw
$e
;
throw
$e
xception
;
}
return
$result
;
}
...
...
@@ -109,8 +114,10 @@ class DrupalPHPMailer extends PHPMailer {
* Destructor.
*/
public
function
__destruct
()
{
// Required when using SMTP keep-alive.
$this
->
SmtpClose
();
// Be nice and close the connection when using SMTP keep-alive.
if
(
$this
->
SMTPKeepAlive
)
{
$this
->
SmtpClose
();
}
}
/**
...
...
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