diff --git a/lib/mailjet/resource.rb b/lib/mailjet/resource.rb index f58fa96..2bdf8e8 100644 --- a/lib/mailjet/resource.rb +++ b/lib/mailjet/resource.rb @@ -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 = {}