Mageno 2.4.4. Transactional Emails with Google Business not working - magento

We have a Google Workspace email address support#company.com which we want to use to send transactional/newsletter emails. So we installed Mageplaza SMTP plugin, chose Google Workspace configuration, everything setup. But when it comes to testing, then there is an Error:
5.7.0 Authentication Required. Learn more at 5.7.0 https://support.google.com/mail/?p=WantAuthError ca18-20020a05622a1f1200b003a7ee9613a6sm1380414qtb.25 - gsmtp
As I understood need to allow in Gmail Settings to use it with "less secure apps". But it also turns out that Gmail no longer supports that feature.
So, the question remains, how can I connect Google Workspace with Magento so all the mails are being sent out from company email (support#company.com)? Or what workaround I could do to make it running?
__
Summary of what we did try: Installing Mageplaza SMTP, Load Google Workspace configuration, Send test mail (unsuccessfully - error happens), Changing Gmail settings (unsuccessfully - feature no longer available).

Related

Is there any Laravel package for sending mail with office 365 mail?

I ve been in a idea of moving to office 365.
I have to send emails to users using laravel app. The problem is, I could not be able to use SMTP for some reason.
So i planned to use a package just like aws. And fortunately i found one.
https://github.com/motze92/office365-mail
The problem with this package is, there is no error from the mailer, but instead, I have a problem in delivering the messages to the recipient.
So i searched for other packages, but i could not find any.
Please help me by suggesting me a package or fixing the issues with SMTP or this package.
Thanks in advance.
there's no need to use package.. You just need to update your .env
MAIL_DRIVER=smtp
MAIL_HOST=OFFICE365_SMTP
MAIL_PORT=587
MAIL_USERNAME=YOUR_OFFICE_365_USERNAME
MAIL_PASSWORD=YOUR_OFFICE_365_PASSWORD
Finally, I am able to find the issue.
By default, Modern Authentication is enabled as security defaults in Azure portal is turned ON for the organization if it has to use Azure portal.
So I had to turn off security defaults in Azure portal and then, SMTP works fine.
I dont need a package to send an email as SMTP works just fine.
For more info : Click here

How to force the gmail inbox to reload/refresh?

I have built an application that uses the import endpoint in the Gmail API Gmail.Users.Messages.import() to clone an email message but allow for subject changing.
It then deletes the original/old message using the remove endpoint Gmail.Users.Messages.remove()
I would like a way to refresh the Gmail inbox UI or even to just reload the web page from Google Apps Script - however, I'm not aware of how to do this - and a look around the internet hasn't proven especially helpful.
Unfortunately it's not possible to control the user's Gmail interface via an API (or add-on). The best your application could do is instruct the user to do it themselves.

Google Cloud Platform service has been disabled

I am attempting an Exchange to Gmail conversion. First steps are to open developer and then create a service project. I get a Google Cloud Platform service has been disabled error right away. The Cloud Platform is enabled on my system, and Google support has verified. Does anyone have any thoughts?
I got the same error in Firefox and tried it on Chrome. It got me to the sign up and give payment info page, which is farther than I got on Firefox.

Unable to add site to Google Push despite being owner in webmaster tools

I am currently getting "You do not have access to the following domain:" error in Google developer console when attempting to use the "Configure webhook notifications" button for Google API push notifications despite the fact that the very same site / domain is listed as mine in Webmaster Tools and I have access to all of the services there. Any ideas?
I guess you also registered "https://yourdomain.com" in google webmaster tools, because the webhooks require https.
The very same thing is happening to me since about one week. I can add all kinds of domains to the push notification list, even "www.chatgrape.com" but not "chatgrape.com".
I described the problem in the Google Product Forums in detail but nobody was able to help me yet: https://productforums.google.com/forum/#!category-topic/apps/general-discussion/Numad1TlCJ8
Yes I actually found that it would only work if I had the https version of the URL registered in Webmaster tools. However, the reason that I can use an https version is that there are some SSL services included with a free CloudFlare account. This does not include using a signed certificate installed on your server. To use Google push, you need to have a certificate installed and it cannot be self signed.

How can I access Gmail's native API?

I would like to access Gmail's native API. Eg,
create a search folder
tag messages
other gmail-specific actions.
There's this similar question, however the question asker seems happy with developing contextual gadgets rather than actually accessing a user's email.
In before anyone mentions: IMAP and POP are generic, non search based protocols and do not provide full access to gmail. Neither gmail.com, nor any of the official Gmail native apps, use IMAP and POP.
Most webmail services have private, non-IMAP/POP APIs and protocols, eg, hotmail (back when it existed used HTTPMail which was reverse engineered and implemented by hotwayd).
I could run Android gmail with a proxy and attempt to reverse engineer the Gmail protocol itself, but I suspect others have had the same need in the past and may already have a solution.
I did find a list of client of Gmail clients on Gmail Agent API but they don't seem maintained past 2004.
Android's Gmail app is using Google Cloud Messaging (GCM) to push email messages/notifications and sync with the phone. I think that’s “the API” you are looking for. The bad news is that it is obviously very well protected.
You can get started for free with GCM's JSON REST API and use it for your push messaging projects, but forget about using it for your Gmail in the same fashion Google does. The only option for getting a similar efficiency would be using IMAP's IDLE extension, which uses also push.
Focusing on what you need, I think there are decent solutions for the use cases you have listed in your question… You could use a [**Google App Script**][4] or libs like [**GMail for Python**][5], which seems a valid option to me... from the [**GMail for Python GitHub**][6]:
Features
Search emails
Read emails
Emails: label, archive, delete, mark as read/unread/spam, star
Manage labels
If you are developing an Android mobile app Gmail Public Labels API could also be of your interest...
Hope it helps...
EDIT: Google just introduced its GMAIL API
Update June 2014: Google have announced access to the native gmail API.
The Gmail API gives you flexible, RESTful access to the user's inbox,
with a natural interface to Threads, Messages, Labels, Drafts, and
History. From the modern language of your choice, your app can use the
API to add Gmail features like:
Read messages from Gmail
Send email messages
Modify the labels applied to messages and threads
Search for specific messages and threads
https://developers.google.com/gmail/api/

Resources