Hi,
Already asked this question in StackOverflow, but as not responses
arrive,
decided to give it a try here
I’m using action mailer to send emails with both html and plain text
version.
Something like this:
mail(:to => '[email protected]', :subject => 'Test message', :from
=>
‘[email protected]’) do |format|
format.text { render :text => ‘test2’ }
format.html { render :inline => ‘
test
’ }end
In my real application, i’m also not using templates because the content
of
the email comes entirely from the database.
Is there a way to remove the Content-ID from the generated email? I ask
this because i identified that this Content-ID cause some issues with
email
clients like Zimbra ( http://www.zimbra.com/ ).
In this case, the text part is identified as an attachment.
A sample email that is sent ( without all headers to reduce the size ):
Subject: Test message
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary=“–==_mimepart_51968c0793776_ae993feec08349d036897”;
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_51968c0793776_ae993feec08349d036897
Date: Fri, 17 May 2013 16:59:03 -0300
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-ID: [email protected]
test
----==_mimepart_51968c0793776_ae993feec08349d036897
Date: Fri, 17 May 2013 16:59:03 -0300
Mime-Version: 1.0
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-ID: [email protected]
test2
----==_mimepart_51968c0793776_ae993feec08349d036897–
See the “Content-ID: [email protected]”?
I
need to remove it.