Skip to content

Commit

Permalink
only send gets the default sender
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Badi committed Mar 22, 2016
1 parent ac3b7b3 commit d0ce458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mailjet/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def create(attributes = {})
# if action method, ammend url to appropriate id
self.resource_path = create_action_resource_path(attributes[:id]) if self.action

if Mailjet.config.default_from
if Mailjet.config.default_from and self.resource_path == 'v3/send/'
default_attributes = { :from_email => Mailjet.config.default_from }
else
default_attributes = {}
Expand Down

0 comments on commit d0ce458

Please sign in to comment.