Fix problem with sendmail delivery where headers should be delimited by \n characters instead of \r\n, which confuses some mail readers #1742 [Kent Sibilev]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1849 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson
2005-07-17 09:27:02 +00:00
parent e69924ecdc
commit bb62568cc3
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
*SVN*
* Fix problem with sendmail delivery where headers should be delimited by \n characters instead of \r\n, which confuses some mail readers #1742 [Kent Sibilev]
*1.0.1* (11 July, 2005)
* Bind to Action Pack 1.9.1

View File

@@ -326,7 +326,7 @@ module ActionMailer #:nodoc:
def perform_delivery_sendmail(mail)
IO.popen("/usr/sbin/sendmail -i -t","w+") do |sm|
sm.print(mail.encoded)
sm.print(mail.encoded.gsub(/\r/, ''))
sm.flush
end
end