2013-03-05 5 views
2

레일즈 3.2.11을 사용 중이며 전송 된 이메일의 이메일 서버로 파란색 호스트를 사용하고 있습니다. 아래 파란색 호스트가있는 Rail Actionmailer 설정

는 development.rb

config.action_mailer.smtp_settings = { 

    :address    => "box75112.bluehost.com", 

    :port     => "465", 
    :domain    => "bluehost.com", 

    :enable_starttls_auto => true, 
    :authentication  => :login, 
    :user_name   => "[email protected]", 
    :password    => "93utitrpppJvZ,[#4rl4" 

}

내 구성 정보이며, 이러한 내 블루 호스트 정보

 Mail Server Username: support+buddy.io 
     Incoming Mail Server: mail.buddy.io 
     Incoming Mail Server: (SSL) box75112.bluehost.com 
     Outgoing Mail Server: mail.buddy.io (server requires authentication) port 26 
     Outgoing Mail Server: (SSL) box75112.bluehost.com (server requires authentication) port 465 

     Supported Incoming Mail Protocols: POP3, POP3S (SSL/TLS), IMAP, IMAPS (SSL/TLS) 
     Supported Outgoing Mail Protocols: SMTP, SMTPS (SSL/TLS) 

없습니다하지만 이메일이 발송되지 않으며, 또한 더있다 오류

아무도 도와 줄 수 있습니까? user_name은 이메일 주소와 동일하지

config.action_mailer.smtp_settings = { 
    address:    => "mail.buddy.io", 
    port:     => 26, 
    enable_starttls_auto: => false, 
    authentication:  => "plain", 
    user_name:   => "support+buddy.io", 
    password:    => "password" 
} 

참고 :

덕분에

답변

1

나는 ActionMailer를 사용하여 BlueHost는 SMTP 서버에 암호화되지 않은 연결을 사용하여 성공을 거두었습니다. 그리고 domain 매개 변수는 필요하지 않습니다.

0

여전히 유용 할 경우. ssl을 사용할 수 있습니다. 다음과 같이 시도하십시오.

config.action_mailer.delivery_method = :smtp 
    config.action_mailer.default_url_options = { :host => 'example.com' } 
    config.action_mailer.raise_delivery_errors = true 
    # Send email in development mode? 
    config.action_mailer.perform_deliveries = true 

    config.action_mailer.smtp_settings = { 
     address: "server.example.com", 
     port: 465, 
     enable_starttls_auto: true, 
     ssl: true, 
     domain: 'example.com', 
     user_name: '[email protected]', 
     password: 'MyPassWorD', 
     authentication: :plain 
    } 

Bluehost에서 저를 위해 일했습니다.