sign inHome | Recent Changes | All Pages | HelpSearch:

ActionMailer Configuration

Before you can send email with ActionMailer you need to create the mail account through VHCS2. You can find the URL to loging to appropriate control panel for your server on the Server addresses page.

To send email with ActionMailer with your PLANET ARGON account… you can use the following configuration options in config/environment.rb.

Example: 1

In this example, we are using the server .planetargon.com? as the SMTP server. Please change this to match the server that your account is hosted on.


ActionMailer::Base.server_settings = { 
  :address => 'neon.planetargon.com',
  :authentication => :login,
  :domain => 'your-domain.com',
  :user_name => 'invite@your-domain.com',
  :password => 'foobar123'
}   

Example: 2

On my domain, tksoftware.com, my ActionMailer is setup as:


ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
    :address => "neon.planetargon.com",
    :port => 25,
    :domain => "tksoftware.com",
    :authentication => :login,
    :user => "account@tksoftware.com",
    :secret => "password",
}

ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.default_charset = "utf-8" 

Of course you have to use your own domain, account, and password.


Powered by JunebugWiki v0.0.28 Last edited by djohnson on September 13, 2007 05:42 PM (diff)
Version 3 (current) «olderversions