Skip to content
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

Feature Request: Gmail API #117

Closed
sleepyxuras91 opened this issue Jul 16, 2021 · 4 comments · Fixed by #122
Closed

Feature Request: Gmail API #117

sleepyxuras91 opened this issue Jul 16, 2021 · 4 comments · Fixed by #122
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@sleepyxuras91
Copy link

Hi thanks for the great provider

A issue I'm having within a chairty domains I manage on Google Worksapce (previously Gapps for charity) is to manage Gmail features, the things I would like to able to setup is Aliases in the "Send mail as" setting with ability to set a default as as a admin in the dashboard you can give people a Alias but doing the setup of the "Send mail as" means logging into their account/ or screensharing which is difficult for the audiance of people I am working with.

Seems this is covered within the Worksapce for developers help documenation

https://developers.google.com/gmail/api/guides/alias_and_signature_settings

Other things are forwarding, vacation messages and other things that the user manage themselves.

Not sure if this API is in scope as I've never actually done any API integrations myself with this Google API but have used a Trail of a dashboard which gave this support but became prehibitivly expensive for the charity to actually subscribe to it.

Keep up the fantastic work.

(Watched the "Community Office Hours: Terraform" video)

@megan07 megan07 added the enhancement New feature or request label Jul 16, 2021
@megan07
Copy link
Contributor

megan07 commented Jul 23, 2021

Hi @sleepyxuras91! Thanks for the feature request - and for watching Community Office hours!
I believe this is the API you're looking for: https://developers.google.com/gmail/api/reference/rest/v1/users.settings.sendAs

We will give it a shot! Thanks!

@sleepyxuras91
Copy link
Author

Yup that certainly looks a bit more detailed than the API I put in my inital issue. Thanks!

@megan07 megan07 added this to the 0.4.0 milestone Jul 26, 2021
@appilon
Copy link
Contributor

appilon commented Jul 26, 2021

Hi @sleepyxuras91 we are actively working on this feature and have it working for internally created users within the same domain/admin workspace, however I imagine you are looking (as are many others) to add external to google send-as aliases. This requires that SMTP MSA is configured https://developers.google.com/gmail/api/reference/rest/v1/users.settings.sendAs#SendAs (see smtpMsa).

We have added these fields to the feature, but it will unfortunately go untested as it's impractical for us to set up that scenario in testing. Assuming one does manage to configure a working SMTP server for Google to attempt verification, the workspace needs to enable SMTP relaying otherwise the following error occurs

 Error 400: Sending through alternate SMTP service is disallowed

Do you happen to already have all that setup? If so, it would be of great help to us if you could let us know if the external send as aliases works by filing a new issue(s) after the feature is merged.

@sleepyxuras91
Copy link
Author

sleepyxuras91 commented Jul 27, 2021

Hi @appilon sorry this isn't a use case we have either generally send-as alias' we're setting up are also just internal addresses to give more generic names to emails instead of having personally named emails on advertising so email doesn't get lost when people change roles / leave.

From the looks of what you have implemented that sounds perfect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants