[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

can't send emails with rails

rabarama

1/9/2008 12:02:00 PM

Hi i'm traing to send an email.
My pages seems to work correctly but i receive nothing.

Here is my enviroment.rb configuration for actionmailer

config.action_mailer.delivery_method = :SMTP
config.action_mailer.smtp_settings = {
:address => "smtp.MYDOMAIN.COM",
:domain => "MYDOMAIN.COM",
:authentication => :login,
:user_name =>"my login to smtp server",
:password =>"my password"
}
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true

Log show this:

Sent mail:
Date: Wed, 9 Jan 2008 12:57:16 +0100
From: THE RIGHT ADDRESS
To: THE RIGHT ADDRESS
Subject: mail di prova
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8


(obviously i masked with capital letters the real addresses)

Im working on a pc with an outlook with the same account configuration and
it works fine

Is there something wrong?
Why do i not receive anything?

thanks for help to a new rails user.


4 Answers

Jaime Iniesta

1/9/2008 1:15:00 PM

0

Hi rabarama, I guess you should ask this on a Rails-only mailing list,
but here's my working config file, on Rails 2:

ActionMailer::Base.smtp_settings = {
:address => "mail.domain.com",
:port => 25,
:domain => "domain.com",
:authentication => :login,
:user_name => "user@domain.com",
:password => "mypassword",
}

ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.default_content_type = "text/html"
ActionMailer::Base.default_charset = "UTF-8"

2008/1/9, rabarama <proftoglimipeloso@levamiyahoo.it>:
> Hi i'm traing to send an email.

--
Jaime Iniesta
http://jaimei... - http://...

rabarama

1/9/2008 2:07:00 PM

0

> ActionMailer::Base.smtp_settings = {
> :address => "mail.domain.com",
> :port => 25,
> :domain => "domain.com",
> :authentication => :login,
> :user_name => "user@domain.com",
> :password => "mypassword",
> }
>
> ActionMailer::Base.perform_deliveries = true
> ActionMailer::Base.raise_delivery_errors = true
> ActionMailer::Base.default_content_type = "text/html"
> ActionMailer::Base.default_charset = "UTF-8"
>
> 2008/1/9, rabarama <proftoglimipeloso@levamiyahoo.it>:
>> Hi i'm traing to send an email.

I love you ;-)

Now it works!

can you suggest me a rails only mailinglist?




Junkone

1/9/2008 2:11:00 PM

0

On Jan 9, 9:07 am, "rabarama" <proftoglimipel...@levamiyahoo.it>
wrote:
> > ActionMailer::Base.smtp_settings = {
> >  :address         => "mail.domain.com",
> >  :port            => 25,
> >  :domain          => "domain.com",
> >  :authentication  => :login,
> >  :user_name       => "u...@domain.com",
> >  :password        => "mypassword",
> > }
>
> > ActionMailer::Base.perform_deliveries = true
> > ActionMailer::Base.raise_delivery_errors = true
> > ActionMailer::Base.default_content_type = "text/html"
> > ActionMailer::Base.default_charset = "UTF-8"
>
> > 2008/1/9, rabarama <proftoglimipel...@levamiyahoo.it>:
> >> Hi i'm traing to send an email.
>
> I love you ;-)
>
> Now it works!
>
> can you suggest me a rails only mailinglist?- Hide quoted text -
>
> - Show quoted text -

you can either the rails google group or nabble.com

Thufir Hawat

2/15/2008 10:26:00 PM

0

On Wed, 09 Jan 2008 23:15:02 +0900, Junkone wrote:

>> can you suggest me a rails only mailinglist?- Hide quoted text -
>>
>> - Show quoted text -
>
> you can either the rails google group or nabble.com


http://dir.gmane.org/gmane.comp.lang....

you'll need an NNTP client such as Pan, or, for Windows, I think Forte.
More convenient than google groups or nabble, particularly if you
subscribe to more than two mailing lists :)

Will that action mailer work with gmail?


thanks,

Thufir