-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$mail->send()) set to false even when the email is sent #2834
Comments
I can't tell without seeing the rest of your code, but I would step through it in a debugger to see why it's getting there. |
What I don’t understand is why the second time mail.send() is returning false when it shouldn’t be but it is sending the email. I have already traced through the code. I t is thought something from the first one is triggering it to be still false the next time.
Pam
From: Marcus Bointon ***@***.***>
Sent: 27 November 2022 16:13
To: PHPMailer/PHPMailer ***@***.***>
Cc: Pamela Whittaker ***@***.***>; Author ***@***.***>
Subject: Re: [PHPMailer/PHPMailer] $mail->send()) set to false even when the email is sent (Issue #2834)
I can't tell without seeing the rest of your code, but I would step through it in a debugger to see why it's getting there.
—
Reply to this email directly, view it on GitHub <#2834 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJXBHTB6CJZFP4KHHWJBBH3WKOB75ANCNFSM6AAAAAASL5XI3A> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/AJXBHTDD6M6AT37SE2ANAOTWKOB75A5CNFSM6AAAAAASL5XI3CWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSPFPW3E.gif> Message ID: ***@***.*** ***@***.***> >
|
It's not set to false, it returns false, indicating something went wrong with the send process. Set |
AH – thanks. I Hadn’t come across that one. That might help. It is definitely something to do with his email address. I gather it is being sent ok from our end but it isn’t arriving at his end while the one to me arrives but that is also returning false and the error message is the same and is still his email address.
Sorry I meant it returns false not set to false
Pam
From: Marcus Bointon ***@***.***>
Sent: 27 November 2022 22:33
To: PHPMailer/PHPMailer ***@***.***>
Cc: Pamela Whittaker ***@***.***>; Author ***@***.***>
Subject: Re: [PHPMailer/PHPMailer] $mail->send()) set to false even when the email is sent (Issue #2834)
It's not set to false, it returns false, indicating something went wrong with the send process. Set $mail->SMTPDebug = 2 so you can see what's going on. Again, I can't do anything without seeing your code.
—
Reply to this email directly, view it on GitHub <#2834 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJXBHTDFPSFRLKHRFJ3RMGDWKPOQHANCNFSM6AAAAAASL5XI3A> .
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I that inside a loop
The first email it is sending to fails which I am expecting but the next one thinks $mail->send() is also false even though the email is getting sent.
Is that a bug or what can I do about it so the one that is sent isn't going through and hitting
$Emails = $Emails . trim($Email) . " - Message was not sent - Mailer Error: " . $mail->ErrorInfo;
$mail->ErrorInfo;
contains the error from the first email address if that helpsThanks
The text was updated successfully, but these errors were encountered: