Wiki Forum Sign up! Explore Home

Not signed in (Sign In)

LiveSearch

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.2 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthormandaryn
    • CommentTimeSep 12th 2007
     permalink
    Hi

    I am trying to set up clockingit on a local ubuntu machine. The action mailer settings are configured to use local mailer however i would want to use external mail server.
    Many things are unfortunately hardcoded (like sender mail configured to domain), and the thing that really annoys me is that i cant make rails to log mailer errors (config.action_mailer.raise_delivery_errors = true doesn't seem to work)

    Any help would be appreciated
    • CommentAuthoradmin
    • CommentTimeSep 12th 2007
     permalink
    There is a setting in config/environment.rb
    $CONFIG = { :domain => "clockingit.com" }
    which allows you to change your domain.

    To use a remote mail host, try something like
    ActionMailer::Base.smtp_settings = {
    :address => "mail.example.com",
    :port => 25,
    :domain => 'example.com',
    :user_name => "myusername",
    :password => "mypassword",
    :authentication => :login
    }


    Try sending a mail from the ./script/console maybe? I catch exceptions from ActionMailer a few places, as getting a internal server error isn't very nice.

    -- Erlend