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

Add "from" field to CreateDraftRequest #233

Merged
merged 2 commits into from
Jun 26, 2024
Merged

Add "from" field to CreateDraftRequest #233

merged 2 commits into from
Jun 26, 2024

Conversation

burtonrhodes
Copy link
Contributor

@burtonrhodes burtonrhodes commented Jun 16, 2024

The SDK should allow setting the "from" address. This was a feature in v2 and is available in the v3 API. Many accounts have "from" aliases or valid alternate "from" addresses that can be used when sending emails.

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@codecov-commenter
Copy link

codecov-commenter commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.04%. Comparing base (d173b93) to head (862cbc1).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #233   +/-   ##
=========================================
  Coverage     80.04%   80.04%           
  Complexity      284      284           
=========================================
  Files            30       30           
  Lines           847      847           
  Branches         86       86           
=========================================
  Hits            678      678           
  Misses          120      120           
  Partials         49       49           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@mrashed-dev mrashed-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @burtonrhodes !

@mrashed-dev mrashed-dev merged commit 65399f6 into nylas:main Jun 26, 2024
1 of 2 checks passed
@mrashed-dev mrashed-dev mentioned this pull request Jun 26, 2024
mrashed-dev added a commit that referenced this pull request Jun 26, 2024
# Changelog
* Fixed default When type (#235)
* Fixed issue where from field was not accessible when creating drafts
(#233, #234)

# License
<!-- Your PR comment must contain the following line for us to merge the
PR. -->
I confirm that this contribution is made under the terms of the MIT
license and that I have the authority necessary to make this
contribution on behalf of its copyright owner.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "from" field to CreateDraftRequest to allow overriding the from address
3 participants