-
-
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
Can not send mail from google smtp.. #561
Comments
Like the error says:
You've requested an auth method that's not supported. If you're using OAuth2, you need to set |
hey.. that was a second try.. |
PIPELINING250-CHUNKING250 SMTPUTF8 |
did you find any solution...? |
You must have done something wrong in configuring your Gmail oauth credentials. It works fine for me and others, and the delivery of credentials itself is very simple. Setting them up is very complex and error-prone, but that's Gmail, not PHPMailer. Work through the oauth docs in the wiki. |
SMTP -> FROM SERVER:220 smtp.gmail.com ESMTP c6sm21581911pfm.165 - gsmtp i am having this error.. please help me |
Make sure you're using the latest version, and base your code on the gmail example provided. |
i am using the latest version of the PHPmailer.. can you please provide me an php example for sending email ? |
Is it really so hard to find the ones that are right here? |
could you give me the proper phpmailer files to use ? the one that can be
downloaded in command prompt using composer.. i cannot download it on my
command prompt and i don't know why it isn't downloading.
…On Tue, Feb 27, 2018 at 4:47 PM, Marcus Bointon ***@***.***> wrote:
Is it really so hard to find the ones that are right here
<https://github.com/PHPMailer/PHPMailer/tree/master/examples>?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#561 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AfDk4edkDRcRYSMx_VFapzLiCFBu2WWIks5tY8EbgaJpZM4GjVEp>
.
|
Please paste the output of running |
[image: Inline image 1]
…On Wed, Feb 28, 2018 at 9:19 AM, ooxi ***@***.***> wrote:
Please paste the output of running composer require phpmailer/phpmailer.
We might have to move this discussion to a more suitable place like
stackoverflow since this is clearly not a PHPMailer issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#561 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AfDk4RGCQHQWAdgW-vRRECh_pQqTSeF5ks5tZKmMgaJpZM4GjVEp>
.
|
Most likely you are trying to send an image to GitHub via mail. Please log into GitHub and paste your console output here. |
i'll just start over from the scratch.. please help me set up phpmailer |
Please make sure you read the instructions carefully. The command is called |
So that's what im missing... Thanks alot ! :) Downloading PHPmailer now... |
Sure thing :-) |
Are you using the GMail example? Also please paste verbatim instead of images. Think of the visually impaired :-) |
yes... everytime i use gmail the smtp error is always occuring |
Please remove the lines after |
oh im sorry hahaha |
2018-02-28 02:12:11 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP s127sm603999pfb.178 - gsmtp this is the error from smtp.gmail.com |
It looks like |
Sorry I was pointing you at the wrong example, please try gmail_xoauth. Also since it's quitting immediately after |
If the XOAuth example also does not work, try adding this from the troubleshooing guide:
Please note that this is not a real solution since it allows active eavesdropping. It's just a quick test to check whether your CA certificates need to get updated. |
use League\OAuth2\Client\Provider\Google; this file doesn't exist in my directory |
We're getting closer :-) Please execute |
yes close hahaha |
$mail->setOAuth( what should i input here ? :( |
You should not have to change anything between lines 58 to 77. You have to configure your account credentials in lines 48 to 56. |
If you don't know where to get those credentials, please make sure to follow the GMail OAuth Guide :-) |
i can't get the Gmail OAuth.. i think i'll stick with sendgrid for now.. Thankyou ! @ooxi |
Thanks for picking this up @ooxi. I suspect the main problem here is that @josebulatao has outdated CA certificates, which prevents gmail's certificate from being verified at the client end - gmail changed their cert not so long ago and this has been a very common result. Disabling verification should be a workaround for that, but the right fix is to download a new CA cert bundle and tell PHP to use that - this is described in the troubleshooting guide. You would need to do this even if using OAuth, since OAuth authentication happens after a TLS session has been established. |
sir @Synchro do you have a sample for making a html be downloaded as pdf file.. i am creating a online request form and want to printout the filled out form. |
That's not really an email question - look at projects like tcpdf. Generally you'll get much better results if you generate PDFs directly using submitted form values rather than converting from HTML. |
I'm using latest phpmailer..
can you please help me..
Connection: opening to smtp.gmail.com:587, timeout=300, options=array ()
Connection: opened
SMTP -> get_lines(): $data is ""
SMTP -> get_lines(): $str is "220 smtp.gmail.com ESMTP i201sm36810815ywe.10 - gsmtp"
SERVER -> CLIENT: 220 smtp.gmail.com ESMTP i201sm36810815ywe.10 - gsmtp
CLIENT -> SERVER: EHLO ws.arin.com.br
SMTP -> get_lines(): $data is ""
SMTP -> get_lines(): $str is "250-smtp.gmail.com at your service, [67.205.67.207]"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [67.205.67.207]"
SMTP -> get_lines(): $str is "250-SIZE 35882577"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [67.205.67.207]250-SIZE 35882577"
SMTP -> get_lines(): $str is "250-8BITMIME"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [67.205.67.207]250-SIZE 35882577250-8BITMIME"
SMTP -> get_lines(): $str is "250-STARTTLS"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [67.205.67.207]250-SIZE 35882577250-8BITMIME250-STARTTLS"
SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [67.205.67.207]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES"
SMTP -> get_lines(): $str is "250-PIPELINING"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [67.205.67.207]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING"
SMTP -> get_lines(): $str is "250-CHUNKING"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [67.205.67.207]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING"
SMTP -> get_lines(): $str is "250 SMTPUTF8"
SERVER -> CLIENT: 250-smtp.gmail.com at your service, [67.205.67.207]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
CLIENT -> SERVER: STARTTLS
SMTP -> get_lines(): $data is ""
SMTP -> get_lines(): $str is "220 2.0.0 Ready to start TLS"
SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
CLIENT -> SERVER: EHLO ws.arin.com.br
SMTP -> get_lines(): $data is ""
SMTP -> get_lines(): $str is "250-smtp.gmail.com at your service, [67.205.67.207]"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [67.205.67.207]"
SMTP -> get_lines(): $str is "250-SIZE 35882577"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [67.205.67.207]250-SIZE 35882577"
SMTP -> get_lines(): $str is "250-8BITMIME"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [67.205.67.207]250-SIZE 35882577250-8BITMIME"
SMTP -> get_lines(): $str is "250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [67.205.67.207]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH"
SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [67.205.67.207]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES"
SMTP -> get_lines(): $str is "250-PIPELINING"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [67.205.67.207]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING"
SMTP -> get_lines(): $str is "250-CHUNKING"
SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [67.205.67.207]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING"
SMTP -> get_lines(): $str is "250 SMTPUTF8"
SERVER -> CLIENT: 250-smtp.gmail.com at your service, [67.205.67.207]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
Auth method requested: XOAUTH
Auth methods available on the server: LOGIN,PLAIN,XOAUTH2,PLAIN-CLIENTTOKEN,OAUTHBEARER,XOAUTH
SMTP Error: Could not authenticate.
CLIENT -> SERVER: QUIT
SMTP -> get_lines(): $data is ""
SMTP -> get_lines(): $str is "221 2.0.0 closing connection i201sm36810815ywe.10 - gsmtp"
SERVER -> CLIENT: 221 2.0.0 closing connection i201sm36810815ywe.10 - gsmtp
Connection: closed
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
The text was updated successfully, but these errors were encountered: