| | |
smtp settings
Please support our Ruby advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Nov 2006
Posts: 44
Reputation:
Solved Threads: 0
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.
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
- Very Slow Forum Notification Emails (Domains and DNS)
- php contact page (PHP)
- SMTP mail settings with PHP (PHP)
- Monitoring number of smtp bytes sent through python e-mail socket (Python)
- PHP e-mail SMTP error ??? (PHP)
- Exchange OWA Issue (Windows NT / 2000 / XP)
- Pop-before-SMTP (Windows NT / 2000 / XP)
Other Threads in the Ruby Forum
- Previous Thread: multi dimension array
- Next Thread: ajax in selection box
| Thread Tools | Search this Thread |





