lib/myrails/templates/rails/app/mailers/dev_mail_interceptor.rb in myrails-6.0.0 vs lib/myrails/templates/rails/app/mailers/dev_mail_interceptor.rb in myrails-7.0.0

- old
+ new

@@ -6,10 +6,10 @@ dev_text += "To address is: #{message.to.to_a.join(", ")}\n" dev_text += "CC address is: #{message.cc.to_a.join(", ")}\n" dev_text += "BCC address is: #{message.bcc.to_a.join(", ")}\n" message.subject = "[#{Socket.gethostname}] [#{Rails.env}] #{message.subject}" - message.to = '<%= options[:email]%>' + message.to = '<%= @email %>' message.cc = "" message.bcc = "" append_address_info(message, dev_text) end