Solved

ActionMailer: How to Embed Images

Posted on 2009-04-07
3
1,990 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

914 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

16 Experts available now in Live!

Get 1:1 Help Now