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.,from-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Here my coding, In my set_mailer.rb ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => "gmail.com", :user_name => "My_personal_ID", :password => "********", :authentication => "plain", :enable_starttls_auto => true } Here my mailer code: class EmployeeMailer < ActionMailer::Base default from: "from-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org" def employee_creation(user) @employee=user attachments["logo.png"] = File.read("#{Rails.root}/app/assets/images/logo.png") mail(:to => user.eamil, :subject => "Registered") end end Please give the solution...!! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/RdBJayqjQLsJ. For more options, visit https://groups.google.com/groups/opt_out.
On Aug 8, 2012, at 9:57 AM, Maddy wrote:> 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.,from-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > Here my coding, > > In my set_mailer.rb > > ActionMailer::Base.smtp_settings = { > :address => "smtp.gmail.com", > :port => 587, > :domain => "gmail.com", > :user_name => "My_personal_ID", > :password => "********", > :authentication => "plain", > :enable_starttls_auto => true > } > > Here my mailer code: > > class EmployeeMailer < ActionMailer::Base > default from: "from-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org" > def employee_creation(user) > @employee=user > attachments["logo.png"] = File.read("#{Rails.root}/app/assets/images/logo.png") > mail(:to => user.eamil, :subject => "Registered") > end > end > > Please give the solution…!Read this page: http://guides.rubyonrails.org/action_mailer_basics.html Walter> ! >> -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/RdBJayqjQLsJ. > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Thank you Walter.. On Thu, Aug 9, 2012 at 7:47 PM, Walter Lee Davis <waltd-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote:> > On Aug 8, 2012, at 9:57 AM, Maddy wrote: > > > 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.,from-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > > > Here my coding, > > > > In my set_mailer.rb > > > > ActionMailer::Base.smtp_settings = { > > :address => "smtp.gmail.com", > > :port => 587, > > :domain => "gmail.com", > > :user_name => "My_personal_ID", > > :password => "********", > > :authentication => "plain", > > :enable_starttls_auto => true > > } > > > > Here my mailer code: > > > > class EmployeeMailer < ActionMailer::Base > > default from: "from-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org" > > def employee_creation(user) > > @employee=user > > attachments["logo.png"] > File.read("#{Rails.root}/app/assets/images/logo.png") > > mail(:to => user.eamil, :subject => "Registered") > > end > > end > > > > Please give the solution…! > > Read this page: http://guides.rubyonrails.org/action_mailer_basics.html > > Walter > > > ! > > > > > -- > > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/RdBJayqjQLsJ. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > >-- *"Attitude is a little thing that makes a big difference"* Thanks & Regards *Ashokkumar.Y* *ROR-Developer **email : ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org* * * -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.