Smtp server

Hi,

i am now in the process of building a newsletter system which will send
out emails to users that have enlisted to a certain group;
everything’s going fine, and i an towards the end of this project…now
the real part of the story kicks in, where i need to check to see if the
thing is working or not. i have been looking over the development.log
file, and i see that the emails are being sent (it says “Sent Email…”)
to the correct users and everything is cool, except, it doesn’t really
work yet because i don’t have a smtp server installed yet, and so i
don’t really know if the actionmailer is really working, or if the
messages are misleading me. either way, i was wondering what i need to
DO/what i need to INSTALL/or CONFIGURE in order to see the email
physicaly being sent out to my email box. ( and open and read it ! )

is there some rails smtp server install/plugin (such as a webrick
extension?) or do i have to do this some other way (and then, how do i
do this?)

i thank you greatly for your help,

harp

If you want to use an smtp server add this at the end of your
config/environment.rb

ActionMailer::Base.server_settings = {
:address => “smtp.gmail.com”,
:port => 25,
:domain => “smtp.gmail.com”,
:user_name => “”,
:password => “”,
:authentication => :login
}

Personally, I use sendmail. For that you should add this:

ActionMailer::Base.delivery_method = :sendmail

Hope it helps,

Roland

harper wrote:

:user_name => “”,
:password => “”,

what do i put in here? or alternatevly, the only change for sendmail is
the one line above? what password/username do i put there?

You have to have access to an SMTP server. I use the one that my ISP
provides. The username and password come from that account. In my case,
the username is my full email address for the account. If you are
hosting your own SMTP server then you have to get it from your configs.

You will need to check with the server, whoever is hosting it.

Good luck!

-Mark E.

:user_name => “”,
:password => “”,

what do i put in here? or alternatevly, the only change for sendmail is
the one line above? what password/username do i put there?

well…i tried to install a local smtp server on my computer, and i
managed to send a test email regardless of the ror app, but via the app
it didn’t really work(obviously). either way, i am not that surprised
since i have never really dealt with emailing, and so, i was hoping to
get some reference to the whole subject (what sendmail is in contrast to
smtp or any other protocol, and what is a neccessity/luxury to define in
enviornment.rb [password, domain, authenticate etc])

any references (aside from api.rubyonrails, which is a very shallow one)
will be greatly appreciated.
thanks!

harp

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs