-
-
Notifications
You must be signed in to change notification settings - Fork 152
SwiftMailer not send mail with Google App account #106
Comments
It seems Gmail prefers OAuth, Swiftmailer supports this authentication mech but its not really documented. https://developers.google.com/gmail/xoauth2_protocol |
Hello @sstok , I have modified the parameters of symfony swiftmailer to change the
This is the error message:
|
I have also tried to change it using this code but it tells me that this method is not available
|
…reguiluz) This PR was squashed before being merged into the 2.3 branch (closes #5856). Discussion ---------- Reworded the "How to use Gmail" cookbook article | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | - In StackOverflow some people are [having issues](http://stackoverflow.com/questions/33226583/swiftmailer-doesnt-work/33240538#33240538) with the `encryption` parameter of Gmail. And others are [having issues](symfony/swiftmailer-bundle#106) with Gmail + SwiftMailerBundle. That's why I propose to reword this article and explain some things with more detail. Commits ------- b113f72 Reworded the "How to use Gmail" cookbook article
I'm having the same exact problem. Reading this I don't understand how to solve the problem and also the reworded documentation is not much clear. There is told
but using as settings
I receive the following exception:
So, how can I use SwiftMailer with a Google Apps set email? |
I could make it work with the following code:
and the following parameters:
I do not remember if I had to touch something in connection permissions of the account. But as I have a business account would not let me set some parameters. |
Thankyou for the reply @frasodel ... Anyway in the meantime I've moved to AWS SES to send e-mails, so I solved the problem at root :D |
I'm using Symfony and I'm trying to send an email with swiftmailer. I have an account set up with google app ([email protected]) and when I try to send shows me the following error:
I tried it with my personal gmail account and send the message correctly with the same settings. Just change the username and password.
I've been searching the internet and I've found this page from Google, where I can change the access to less secure applications. https://www.google.com/settings/security/lesssecureapps
In my gmail account this option is active, but if I turn shows me the same error when sending email. I've been trying to change this setting in google app account but it tells me that this option is not available for google app.
Any idea to send emails from this account by google app? I have to set something else?
The text was updated successfully, but these errors were encountered: