Skip to content

Add ActionMailer support#3

Merged
r4do merged 2 commits intomainfrom
add-actionmailer-integration
Aug 1, 2022
Merged

Add ActionMailer support#3
r4do merged 2 commits intomainfrom
add-actionmailer-integration

Conversation

@r4do
Copy link
Copy Markdown
Contributor

@r4do r4do commented Jul 22, 2022

No description provided.

mailtrap.gemspec Outdated
spec.metadata['rubygems_mfa_required'] = 'true'

spec.add_dependency 'mail'
spec.add_dependency 'net-smtp'
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This gem is needed as Ruby 3.1 doesn't have 'net/smtp' package included.
mikel/mail#1472

Or should we move this to regular Gemfile since we not require ActionMailer (thus are not using mail in runtime)?

module Sending
module Convert
class << self
def from_message(message) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we commit code with rubocop:disasble?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't think it's a good idea to liberate rubocop settings for the entire repo having in mind we are talking about a single method with disables.
Any ideas to simplify the code?

@r4do r4do force-pushed the add-actionmailer-integration branch from 0e9e628 to 02512d9 Compare July 27, 2022 10:55
Copy link
Copy Markdown
Contributor

@leonid-shevtsov leonid-shevtsov left a comment

Choose a reason for hiding this comment

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

Looks good, i have a couple cleanup suggestions, that's all

@r4do r4do merged commit 84b0867 into main Aug 1, 2022
@r4do r4do deleted the add-actionmailer-integration branch August 1, 2022 10:40
i7an pushed a commit that referenced this pull request Aug 4, 2025
Update Batch Sending API Examples
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.

3 participants