smtp settings

Thread Solved

Join Date: Nov 2006
Posts: 44
Reputation: amithasija is an unknown quantity at this point 
Solved Threads: 0
amithasija amithasija is offline Offline
Light Poster

smtp settings

 
0
  #1
Mar 14th, 2007
require 'action_mailer'

ActionMailer::Base.delivery_method = :smtp

ActionMailer::Base.server_settings = {
:address => "address",
:port => 25,
:domain => "domain.com",
:user_name => "myid@domain.com",
:password => "password",
:authentication => :login
}
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.default_charset = "utf-8"


i have used the above code to send a mail in /config/enviourment.rb and its working fine ,now i want to change the settings dyanamically like if i send domain name and address from frontend it will change in the actionmailer and satrt working for that new address and domain.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Ruby Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC