I am trying to send emails that contain both plain text and the html component. There are no attachments, but there are embedded images in the HTML part. I use the content type "multipart / alternative". I do not install the parts separately; I rely on file names to determine the details. I'm on the rails 2.3.10.
In approximately 60% of cases, sent letters are sent without a body, and part of the HTML is attached to the message with the name "noname" (in any case in gmail). The rest of the time they send as expected. If I send 10 emails in 10 seconds, almost always 6 of them will be empty.
When I check the logs, messages that go through correctly display both parts of the mime in the log and show the boundary value in the content type declaration.
Empty emails still have the multipart / alternative content type, but without borders, because empty emails do not display part of the plain text and only display part of the html. Looking at the visualized templates, it is clear that the text part of the message is completely missing.
Why does this sometimes work and often fail? All messages are delayed.
Enter your "good" email address:
Provided notifications / _comment (0.1ms)
Presented layouts / _footer (2.1ms)
Displayed layouts / _container (2.3 ms)
Provided general / attachments / _count (0.6ms)
Presented layouts / speech / _bubble (21.4 ms)
Displayed layouts / speech / _detail (0.8 ms)
Provided notifications / _comment (22.6ms)
Presented layouts / _footer (2.0ms)
Displayed layouts / _container (2.2 ms) Email
sent [edited]
: , 8 2010 11:37:24 -0800
From: "[redacted]" < [redacted] >
Reply-To: "[]" []
: []
: -
Mime-Version: 1.0
Content-Type: multipart/alternative; = mimepart_4cd85174328d6_1486..fdbe5b8d87fe
- mimepart_4cd85174328d6_1486..fdbe5b8d87fe
Content-Type: text/plain; = UTF-8
:
Content-Disposition: inline
[ ]
[ html]
--mimepart_4cd85174328d6_1486..fdbe5b8d87fe -
:
//_count (0.1ms)
//_bubble (0,6 )
//_detail (0,7 )
/_comment (1,6 )
/_footer (25.9)
/_ (26,1 )
[]
: , 8 2010 11:37:29 -0800
From: "[redacted]" < [redacted] >
Reply-To: "[redacted]" < [redacted] >
: []
: -
Mime-Version: 1.0
Content-Type: multipart/alternative; charset = utf-8
[ HTML]
, 5 , ( ) .