我一直有问题在我的ruby on rails应用程序上设置邮件程序,我知道之前已经问过这个问题,但是没有一个问题解决了我的问题所以我说我会给它一个尝试。
我当前的开发日志是。
Rendered example_mailer/sample_email.html.erb within layouts/mailer (0.1ms)
Rendered example_mailer/sample_email.text.erb within layouts/mailer (0.0ms)
ExampleMailer#sample_email: processed outbound mail in 13.5ms
Sent mail to admin@exampler.ca (20.8ms)
Date: Wed, 09 Aug 2017 13:46:42 +0000
From: noreply@exampler.ca
To: admin@exampler.ca
Message-ID: <598b1242ae925_95383fe3f1445b7852366@team-version-5166637.mail>
Subject: Hello from Postmark
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_598b1242ad242_95383fe3f1445b78522a1";
charset=UTF-8
Content-Transfer-Encoding: 7bit
html-body: <strong>Hello</strong> dear Postmark user.
track-opens: true
----==_mimepart_598b1242ad242_95383fe3f1445b78522a1
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Hi
Sample mail sent using smtp.
----==_mimepart_598b1242ad242_95383fe3f1445b78522a1
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
<html>
<body>
<!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<h1>Hi </h1>
<p>
Sample mail sent using smtp.
</p>
</body>
</html>
</body>
</html>
----==_mimepart_598b1242ad242_95383fe3f1445b78522a1--
Completed 500 Internal Server Error in 102ms (ActiveRecord: 60.6ms)
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=unknown state: unknown protocol):
app/controllers/confessions_controller.rb:42:in `block in create'
app/controllers/confessions_controller.rb:39:in `create'
Rendered /usr/local/rvm/gems/ruby-2.3.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.5ms)
Rendered /usr/local/rvm/gems/ruby-2.3.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.8ms)
Rendered /usr/local/rvm/gems/ruby-2.3.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.7ms)
Rendered /usr/local/rvm/gems/ruby-2.3.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (35.9ms)
我的application.rb是
config.action_mailer.delivery_method = :postmark
config.action_mailer.postmark_settings = { :api_token => "A_token" }
和我的
看来,如果我尝试使用命令行进行连接,例如:
openssl s_client -connect aristo4stu3.bgu.ac.il:443 -no_tls1 #### this works
openssl s_client -connect aristo4stu3.bgu.ac.il:443####这不起作用
我的红宝石版
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
我的openssl版本
OpenSSL 1.0.1f 6 Jan 2014
linux版本:
Linux team-version-5166637 4.9.17-c9 #1 SMP Thu Mar 23 01:38:54 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
任何帮助将不胜感激,谢谢!