GeekedOut
GeekedOut

Reputation: 17185

Choosing SMTP or SendMail in a Rails app in Ubuntu

I am trying to follow this tutorial http://edgeguides.rubyonrails.org/action_mailer_basics.html and at the bottom it gives configuration options for SendMail and SMTP. Neither one works for me so far :)

Which one is more commonly used and what are the considerations of trying either one of those?

Also, in the tutorials, they provide examples of configurations in this format:

  :user_name            => '<username>',
  :password             => '<password>'

In my application, what are these referring to? I don't really have passwords? And once I do figure them out, should I keep the brackets or no?

Also, what is the difference in http host and smtp host? How do I figure out the domain of my smtp host? My general domain is localhost:3000 - should I just use that?

 :address => "domain-of-smtp-host.com"
 :domain => "domain-of-sender.com",

Thanks, Alex

Upvotes: 2

Views: 1599

Answers (1)

mkro
mkro

Reputation: 1892

SMTP is a protocol that SendMail implements.

What you need is an SMTP server for which you have valid credentials, be it your own or some remote service (ie google mail).

Then just enter those credentials and you should be done.

I guess you don't have an SMTP server set up locally, so for testing purposes you can use your xyz Email provider.

And no, remove the brackets once you found out what credentials you want to enter there.

Upvotes: 1

Related Questions