943,683 Members | Top Members by Rank

Ad:
  • Ruby Discussion Thread
  • Marked Solved
  • Views: 4488
  • Ruby RSS
Mar 14th, 2007
0

smtp settings

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
amithasija is offline Offline
44 posts
since Nov 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Ruby Forum Timeline: multi dimension array
Next Thread in Ruby Forum Timeline: ajax in selection box





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC