Ruby on Rails Friday, January 16, 2015

Scott Ribe wrote in post #1166818:
> On Jan 16, 2015, at 2:25 PM, Thomas Michael <lists@ruby-forum.com>
> wrote:
>>
>> Still, the email always comes through as a downloadable image. I'm
>> using Rails 4.1.6.
>>
>> Any advice or pointers in the right direction?
>
> I notice that you're not setting the encoding to base64 as suggested in
> the first link you posted.
>
> Also, have you examined the actual email raw source as delivered? Even
> after get the image properly encoded inline, it's up to the email client
> whether or not it decides to actually display it inline.

Good advice. I removed the base64 encoding because the image wasn't
showing up at all.

I actually discovered the problem shortly after posting this: in
send_email, I am setting body: email.body. So the view will never
render.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e4cf61e2af6509e4e55d0e8dca092a83%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment