Thx for response.

But im already have this file "smtp_tls.rb", im using a plugin called:
"action_mailer_optional_tls"

With normal ruby(native) it run OK, but only when i use jruby it dont send.

Im using ruby 1.8.7(come with jruby) and rails 2.3.5

Ty again.

============================================

2009/12/5 Dhruva Sagar <[email protected]>

> Ahhh so you require TLS :).
> Well firstly you want to add the config I mentioned in the previous email
> here so that it logs errors for you.
>
> Regarding TLS, can you tell me what rails version & ruby version are you
> using ?
> If your using Ruby version 1.8.x then it turns out that ActionMailer is not
> working properly with TLS.
>
> There are a few hacks available for the same, you have to download a file
> tls_smtp.rb. Please google and find for that, you should find it easily, I
> forgot the source and unfortunately the file doesn't mention the author /
> source as comments.
>
> My configuration is like this now for TLS :
>
> *# In the development environment your application's code is reloaded on*
> *# every request.  This slows down response time but is perfect for
> development*
> *# since you don't have to restart the webserver when you make code
> changes.*
> *config.cache_classes = false*
> *
> *
> *# Log error messages when you accidentally call methods on nil.*
> *config.whiny_nils = true*
> *
> *
> *# Show full error reports and disable caching*
> *config.action_controller.consider_all_requests_local = **true*
> *config.action_view.debug_rjs                         = **true*
> *config.action_controller.perform_caching             = **false*
> *
> *
> *# Don't care if the mailer can't send*
> *config.action_mailer.raise_delivery_errors = **true*
> *
> *
> *require 'tls_smtp'*
> *ActionMailer::Base.perform_deliveries = **true*
> *ActionMailer::Base.delivery_method = :smtp*
> *ActionMailer::Base.smtp_settings = {*
> *    :address        => 'gmail.com',*
> *    :port           => 447,*
> *    :domain         => 'gmail.com',*
> *    :authentication => :login,*
> *    :user_name      => '[email protected]',*
> *    :password       => 'password_goes_here',*
> *    :ssl            => true*
> *}*
>
> These are my configurations
>
> Thanks & Regards,
> Dhruva Sagar.
>
>
>
>
>
> On Sat, Dec 5, 2009 at 8:20 AM, Paulo Coutinho <[email protected]>wrote:
>
>> Im using the normal configuration in "/config/environment.rb":
>>
>> # Configuração do smtp
>> ActionMailer::Base.default_content_type = 'text/html'
>> ActionMailer::Base.delivery_method = :smtp
>> ActionMailer::Base.smtp_settings = {
>>   :tls => true,
>>   :address => 'smtp.gmail.com',
>>   :port => 587,
>>   :domain => 'mydomain.com',
>>   :authentication => :plain, # pode usar também :login
>>   :user_name => 'my_email',
>>   :password => 'my_pass'
>> }
>>
>>
>>
>> 2009/12/5 Dhruva Sagar <[email protected]>
>>
>> In your config/environments/development.rb, have you configured things
>>> properly for ActionMailer ?
>>> What is your config for config.action_mailer.raise_delivery_errors ? it
>>> should be set to true for it to report errors.
>>> You will have to give more details regarding your mail server as well...
>>>
>>> Thanks & Regards,
>>> Dhruva Sagar.
>>>
>>>
>>>
>>>
>>> On Sat, Dec 5, 2009 at 8:14 AM, Paulo Coutinho <[email protected]>wrote:
>>>
>>>> I have application that i send email normal with native ruby.
>>>>
>>>> But when i execute the sample application with jruby, it dont send email
>>>> and dont get error.
>>>>
>>>> What can be wrong?
>>>>
>>>> --
>>>> Atenciosamente,
>>>> Paulo Coutinho.
>>>> Blog: www.prsolucoes.com/blog
>>>> Site: www.prsolucoes.com
>>>> Msn:  [email protected]
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Ruby on Rails: Talk" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected]<rubyonrails-talk%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Ruby on Rails: Talk" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<rubyonrails-talk%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>>
>>
>>
>>
>> --
>> Atenciosamente,
>> Paulo Coutinho.
>> Blog: www.prsolucoes.com/blog
>> Site: www.prsolucoes.com
>> Msn:  [email protected]
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby on Rails: Talk" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<rubyonrails-talk%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>



-- 
Atenciosamente,
Paulo Coutinho.
Blog: www.prsolucoes.com/blog
Site: www.prsolucoes.com
Msn:  [email protected]

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to