ActionMailer problem

Hi guys!

I used action mailer in my project,in that the from ID show always my own ID.I need it show some default ID like.,

Here my coding,

In my set_mailer.rb

ActionMailer::Base.smtp_settings = {
  :address => "",
  :port => 587,
  :domain => "",
  :user_name => "My_personal_ID",
  :password => "********",
  :authentication => "plain",
  :enable_starttls_auto => true

Here my mailer code:

class EmployeeMailer < ActionMailer::Base
  default from: ""
  def employee_creation(user)
    attachments["logo.png"] ="#{Rails.root}/app/assets/images/logo.png")
    mail(:to => user.eamil, :subject => "Registered")

Please give the solution…!

Read this page:


Thank you Walter…