Displaying 8 results from an estimated 8 matches for "transfer_encod".
2009 Apr 09
1
Mailing error in Rails 2.3.2
...ail.subject=hsh[:subject]
main=mail
main=TMail::Mail.new
main.body = hsh[:body]
puts main.body
main.set_content_type(''text/plain'', nil, ''charset''=>''utf-8'')
mail.parts.push(main)
for raw_attachment in raw_attachments
part = TMail::Mail.new
transfer_encoding=raw_attachment[:transfer_encoding]
body=raw_attachment[:body]
case (transfer_encoding || "").downcase
when "base64" then
part.body = TMail::Base64.folding_encode(body)
when "quoted-printable"
part.body = [body].pack("M*")
else
par...
2011 Feb 15
0
How to set content_transfer_encoding to something other than quoted-printable?
Hi all,
How do I set the content_transfer_encoding for mail with actionmailer
to something other than quoted-printable? It''s a setting with TMail
which action mailer relies on in rails 2.3.*. I am trying to set it to
utf8
I have tried:
- mail = TMail::Mail.new; mail.transfer_encoding = "utf8";
- setting the @header["Cont...
2010 Jan 09
8
X-Forwarded-Proto / X_FORWARDED_PROTO
Eric,
think I came across an issue with the parser in unicorn, with a request
(due to 2 layers of nginx proxying) coming across with both a
X_FORWARDED_PROTO and a X-Forwarded-Proto header. From the socket (in
HttpRequest) - we get:
X_FORWARDED_PROTO: http
X-Forwarded-Proto: https
which is parsed to
HTTP_X_FORWARDED_PROTO"=>"http,https
There was a passenger ticket that
2006 Jul 11
0
ActiveMailer HTML + Plain Text + Attachment?
...ody = render_message("answer_as_html", :message => message,
:signature => representative.signature)
end
part "text/plain" do |p|
p.body = render_message("answer_as_plain", :message => message,
:signature => representative.signature)
p.transfer_encoding = "base64"
end
attachment message.attachment.content_type do |a|
a.body = attachment.body
a.filename = attachment.filename
end
end</pre>
--
Posted via http://www.ruby-forum.com/.
2006 Mar 01
0
Possible bug in ActionMailer (with patch)
...39;
part :content_type => ''text/html'',
:body => ''Before <img src="cid:test@test.com"> After''
part :content_type => ''image/png'',
:content_disposition => ''inline'',
:transfer_encoding => ''base64'',
:body => File.read("location.jpg"),
:filename => ''location.jpg'',
:headers => { ''Content-ID'' => ''<test@test.com>'' }
end
end
Since ActionMailer::Part l...
2008 Mar 13
0
Template being ignored when attaching pdf in e-mail
...otice, :message => message}
@recipients = email
@from = "test-J0of1frlU80@public.gmane.org"
@sent_on = Time.now
@content_type = "text/html"
attachment :content_type => "application/pdf", :filename =>
"notice.pdf", :transfer_encoding => "send_pdf" do |a|
a.body = generate_pdf(notice_request)
end
end
def generate_pdf(notice_request)
pdf = PDF::Writer.new(:paper => "LETTER")
pdf.select_font ''Times-Roman''
pdf.text "HELLO WORLD", :font_s...
2005 Nov 17
7
render :partial in mail template
Hi,
Is it possible to render a partial template from within a mail template?
I get the following error
undefined method `controller_path'' for SupportMailer:Class
Extracted source (around line #8):
5:
6: <%= @url %>
7:
8: <%= render_partial ''sig_admin'' %>
Jeroen
2008 Nov 30
4
ActionMailer weirdness: bad html '=3d' for all '='
I am getting html output in my email body with spurious characters
that cannot be rendered, so that my links are not handled properly.
What am I not getting here?
My email body contains:
-----------------clip-------------
<A href=mailto:"<%=h(''support-t1rxLZ7CIXjQT0dZR+AlfA@public.gmane.org'')%>?
Support">Support</A><br/>
with any