User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Ruby section within the Web Development category of DaniWeb, a massive community of 397,814 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,563 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Ruby advertiser: SELL YOUR PRODUCT TODAY !
Views: 2473 | Replies: 0 | Solved
Reply
Join Date: Nov 2006
Location: new delhi
Posts: 38
Reputation: amithasija is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
amithasija amithasija is offline Offline
Light Poster

Help smtp settings

  #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.
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Ruby Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Ruby Forum

All times are GMT -4. The time now is 6:32 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC