Welcome Guest | Login

actionmailer server settings?

Hello

I am trying to set up my application so that users can send us messages via the website, but I am having trouble figuring out what settings I should use for the Ruby actionmailer. Any help would be much appreciated.

delivery method: smtp or sendmail?
address:?
port: 25?
domain:?
user_name:required?
password:required?
authentication?

Lisa

2006-12-14 12:35 PM

Hi there, I've found this to work quite fast...
    ActionMailer::Base.delivery_method = :sendmail  
   ActionMailer::Base.perform_deliveries = true  
   ActionMailer::Base.raise_delivery_errors = true  
   ActionMailer::Base.default_charset = "utf-8"
Connecting to smtp was too slow for my tastes....

Cheers,

~William

2006-12-14 02:47 PM

That works very well.  Thanks

2006-12-15 10:00 AM

Where does the above code go?

2007-03-05 10:56 AM

Check out my comic sketches
At the very bottom of your config/environment.rb file.  

Cheers,

~William

2007-03-05 11:05 AM

Thanks sir.  That worked like a charm.

Bry

2007-03-05 12:34 PM

Check out my comic sketches
hi anyone know of any nice tutorails for how to setup a rails app to recieve incoming email?

2007-03-05 01:21 PM

Yeah - I remember it was a bit of a chore - but I have it pretty fresh in my head.  Check out http://wiki.rubyonrails.org/rails/pages/HowToReceiveEmailsWithActionMailer for starters.  To get it running on your HostingRails account you'll need to add a forwarder in cPanel and instead of an email address use:
|/usr/local/bin/ruby /home/username/railsapp/script/runner -e production Mailman.receive(STDIN.read)
We'll have to modify something for you custom, but then you can have the Mailman model do all the work when it receives the TMail object...

If you'd like to help me write a wiki tutorial that'd be cool - if not, no worries..we'll get it done soon.  

Cheers,
~William

2007-03-05 02:52 PM

BTW - if you have more questions/comments on this please open up a new thread....

2007-03-05 02:53 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up today!