But this will override the smtp settings for the rest of mailers.
Instead, set them for the email instance:
123456
# assuming in controller actionmail=UserMailer.user_registered(current_user)custom_smtp_settings={address:'some.domain',port:25}mail.delivery_method.settings.merge!custom_smtp_settings# now this will send using custom SMTP settingsmail.deliver