# ActionMailer + ISP SMTP

**URL:** <https://www.ruby-forum.com/t/actionmailer-isp-smtp/106511>\
**Category:** Rails\
**Created:** [June 11, 2007, 2:01pm UTC](https://www.ruby-forum.com/t/actionmailer-isp-smtp/106511 "2007-06-11T14:01:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gonen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/bbce88/32.png) [@gonen](https://www.ruby-forum.com/u/gonen)\
**Post date:** [June 11, 2007, 2:01pm UTC](https://www.ruby-forum.com/t/actionmailer-isp-smtp/106511/1 "2007-06-11T14:01:49Z")

</div>

Hi  
I’m new here, and pretty much new on the rails.

I’m trying to set up my application to send emails (needed for salted  
hash login)  
but i keep getting errors.

i’m sure port 25 is not blocked since i’m able to  
send mails  
through PHP scripts.

my smtp settings in config/enviroment.rb are:

# Include your app’s configuration here:

ActionMailer::Base.smtp\_settings = {  
:address =\> “smtp.012.net.il”,  
:port =\> 25,  
:domain =\> “localhost”,  
:user\_name =\> “USERNAME”,  
:password =\> “PASS”,  
:authentication =\> :login  
}

and i also tried with:  
:authentication =\> :plain

and:  
without :domain  
with :domain =\> “[mydomain.com](http://mydomain.com)”,  
with :domain =\> “www.012.net.il”,  
without username and password

nothing worked…

i don’t want to use local smtp (like sendmail) because i’m on a  
dynamic IP  
and other service providers (like walla\gmail) often block mails from  
Dyn IP

any help would be most appreciated

Thanks,  
Gonen

---

<div class="post-metadata">

**Author:** ![gonen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/bbce88/32.png) [@gonen](https://www.ruby-forum.com/u/gonen)\
**Post date:** [June 11, 2007, 2:03pm UTC](https://www.ruby-forum.com/t/actionmailer-isp-smtp/106511/2 "2007-06-11T14:03:50Z")

</div>

Use “:authentication =\> nil” if your ISP does not require authentication  
for  
SMTP traffic.

–Tim
