Solved

ActionMailer: How to Embed Images

Posted on 2009-04-07
3
1,987 Views
Last Modified: 2013-11-13
How would I embed images in an HTML email using ActionMailer?  I can manage to get the HTML/Plain text email but nothing more than that.
0
Comment
Question by:renderbox
3 Comments
 
LVL 10

Expert Comment

by:Andrew Doades
ID: 24089526
you just add

<%= image_tag "logo.png" %>

into the view file for that email, change the image name/extension to your own
0
 
LVL 1

Author Comment

by:renderbox
ID: 24089726
I did that but it made a URL in the email pointing to the image, rather than including the image as an attachment and setting up the content-id.

Any thoughts as to why that would happen?
0
 
LVL 14

Accepted Solution

by:
wesgarrison earned 250 total points
ID: 24089968
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Routing in Rails 3 3 680
Grails dropdown results from <g:select> 4 1,646
Upgrading Ruby & Rails on CentOS 3 434
subversion post-commit hook issue 4 548
In Ruby, Call or invoke a API DLL library is easily via Win32API class, win32-api gem or other gems. For general DLL API call, there are quite a few references, some good tips list below: http://www.rubytips.org/2008/05/13/accessing-windows-api-fro…
Recently I spent hours debugging an issue in a Rails project where ActiveRecord was causing MySQL errors trying to create a User object of a class at the top level of a Single Table Inheritance model structure.  It turns out `.create` behaves differ…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now