```ruby
module Spree
  class SupplierMailer < Spree::BaseMailer

    default from: Spree::Config[:mails_from]

    def welcome(supplier_id)
      @supplier = Supplier.find supplier_id
      mail to: @supplier.email, subject: Spree.t('supplier_mailer.welcome.subject')
    end

  end
end
```

Replace outdated Spree::Config[:mails_from] with Spree::Store.current.mail_from_address
user
```ruby
module Spree
  class SupplierMailer < Spree::BaseMailer

    default from: Spree::Store.current.mail_from_address

    def welcome(supplier_id)
      @supplier = Supplier.find supplier_id
      mail to: @supplier.email, subject: Spree.t('supplier_mailer.welcome.subject')
    end

  end
end
```
assistant