Welcome to Working With Rails

 

Discussion Forums

Discuss all things Ruby on Rails with perhaps the web's most vibrant group of Ruby on Rails enthusiasts.
Mailer settings in Ruby file
4 Posts
Mailer settings in Ruby file

Hi Srinath,

appears an authentication error.

could u see the previous post of ActionMailer? "actionmailer-giving-trouble-mails-sent-acc-logs-not-received":http://workingwithrails.com/forums/4-ask-a-rails-expert/topics/1288-actionmailer-giving-trouble-mails-sent-acc-logs-not-received. I explain a basic way to send emaisl with Gmail.

I am using Gmail with a TLS plugin, but I not using the parameter: enable_starttls_auto in the configuration.

Try checking the ActionMailer settings.

Regards

Fernando

Person
Forum Rating: 100
Sign In To Rate Post

Hi Fernando, thanks for reply.

I checked settings and seems they are right. Actually i already installed TLS plugin. but this file is seperate file and will run from outside. thats why i wrote all the models again in this file. Do we need to configure tls plugin in the ruby file . I was unable to figure out where it is going wrong . Please Let me know if need more info from me .

thanks in advance.

Hi Srinath,

I tried your code, and I could reproduce the error with Rails 2.3.5, but works fine with Rails 2.3.8.

U can try two options:

1 - upgrade to Rails 2.3.8 (not need to use specific TLS gems)

gem update rails

or

2 - use the gmail_sender gem "Gmail Sender":http://github.com/dcadenas/gmail_sender

Follow the instructions. It's easy to configure and use, and if it's necessary, also intall tlsmail ( gem install tlsmail )

The two options I have tried recently and work well.

I hope this helps

Greetings

Fernando

Person
Forum Rating: 100
Sign In To Rate Post

Thanks a lot Fernando. I tried with gmail sender and it works . Also will try with 2.3.8 later some time. Sorry for the slow response.

Regards, srinath

4 Posts
Login to add your message