Chiunque ha la fortuna di configurare ActionMailer per inviare e-mail tramite un account Zoho?Rails Configurazione ActionMailer per Zoho
Queste sono le mie impostazioni:
ActionMailer::Base.smtp_settings = {
:address => "smtp.zoho.com",
:port => 465,
:domain => 'example.com',
:user_name => '[email protected]',
:password => 'n0tmypa$$w0rd',
:authentication => :login
}
Tuttavia, chiamando .deliver volte su:
irb(main):001:0> AdminMailer.signup_notification('asfd').deliver
Timeout::Error: Timeout::Error
from C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:146:in `rescue in rbuf_fill'
from C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:140:in `rbuf_fill'
from C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:122:in `readuntil'
from C:/Ruby193/lib/ruby/1.9.1/net/protocol.rb:132:in `readline'
from C:/Ruby193/lib/ruby/1.9.1/net/smtp.rb:929:in `recv_response'
from C:/Ruby193/lib/ruby/1.9.1/net/smtp.rb:552:in `block in do_start'
from C:/Ruby193/lib/ruby/1.9.1/net/smtp.rb:939:in `critical'
from C:/Ruby193/lib/ruby/1.9.1/net/smtp.rb:552:in `do_start'
from C:/Ruby193/lib/ruby/1.9.1/net/smtp.rb:519:in `start'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/mail-2.4.4/lib/mail/network/delivery_methods/smtp.rb:144:in `deliver!'
La help docs dicono di utilizzare la porta 465 e l'autenticazione SSL. Ho provato con e senza :enable_starttls_auto => true
ma è ancora in timeout.
In particolare, il docs specificare le seguenti impostazioni:
> Email Address: [email protected]
> User Name format: [email protected]
> Secure Connection (SSL) Yes
> Outgoing Mail Server Name: smtp.zoho.com
> Outgoing Port No.: 465
> Outgoing Mail Server requires authentication: Yes
Tutte le idee?
p.s. Ho configurato Outlook per utilizzare le impostazioni nell'email help docs e in uscita funziona correttamente. telnet to smtp.zoho.com 465 si connette anche.
stai provando dal tuo host locale ??? – Jean
Lo sono, anche se ovviamente il server SMTP è remoto (zoho.com). Questo importa? Il client di posta elettronica (Outlook) con le stesse impostazioni è anche sullo stesso host locale. – lambinator
Non si sa se si desidera utilizzare Outlook, Microsoft non sembra tollerare la posta in uscita dalle applicazioni, anche per le cose necessarie come le conferme delle e-mail. – Noz