Skip to content
This repository
Browse code

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
  • Loading branch information...
commit bb62568cc36399ba1b6f5d6e9db9f7a71072ad1b 1 parent e69924e
David Heinemeier Hansson authored July 17, 2005
5  actionmailer/CHANGELOG
... ...
@@ -1,3 +1,8 @@
  1
+*SVN*
  2
+
  3
+* 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]
  4
+
  5
+
1 6
 *1.0.1* (11 July, 2005)
2 7
 
3 8
 * Bind to Action Pack 1.9.1
2  actionmailer/lib/action_mailer/base.rb
@@ -326,7 +326,7 @@ def perform_delivery_smtp(mail)
326 326
 
327 327
       def perform_delivery_sendmail(mail)
328 328
         IO.popen("/usr/sbin/sendmail -i -t","w+") do |sm|
329  
-          sm.print(mail.encoded)
  329
+          sm.print(mail.encoded.gsub(/\r/, ''))
330 330
           sm.flush
331 331
         end
332 332
       end

0 notes on commit bb62568

Please sign in to comment.
Something went wrong with that request. Please try again.