?
Solved

ActionMailer: How to Embed Images

Posted on 2009-04-07
3
Medium Priority
?
2,025 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 1000 total points
ID: 24089968
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

741 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