Comment on Tutorial - Sending emails using SMTP in Ruby By James Edward Gray II
Comment Added by : Sonal
Comment Added at : 2012-11-07 07:05:33
Comment on Tutorial : Sending emails using SMTP in Ruby By James Edward Gray II
how can i use <img> tag in message body?
msgstr = <<END_OF_MESSAGE
From: Your Name <[email protected]>
To: Destination Address <[email protected]>
Subject: test message
Date: Sat, 23 Jun 2001 16:26:43 +0900
Message-Id: <unique.message.id.stri[email protected]>
<img src = "/my_prj/public/logo.jpeg" alt = "logo">
This is a test message.
END_OF_MESSAGE
require 'net/smtp'
Net::SMTP.start('your.smtp.server', 25) do |smtp|
smtp.send_message msgstr,
'[email protected]',
'[email protected]'
end
View Tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Java program to get location meta data from an image
Program using concept of byte long short and int in java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. hi, the code is fine. i want this array to be decl
View Tutorial By: deepi at 2012-04-26 06:08:36
2. Managing several submissions can be a lot more sim
View Tutorial By: Curran Cline at 2012-12-18 05:43:44
3. I'm getting the following error even after several
View Tutorial By: Joe85 at 2011-03-18 08:58:04
4. nice one dear
View Tutorial By: pradeep at 2010-02-15 07:00:35
5. This all works fine, but when I read records from
View Tutorial By: Ayac at 2011-10-31 10:58:21
6. Zabardast
View Tutorial By: Rohan at 2011-11-03 08:25:59
7. I am wanting to use a Honeywell 4600g handheld sca
View Tutorial By: bugdrvr1970 at 2012-01-25 17:27:43
8. I am new in Java and got good information to under
View Tutorial By: Umesh Kumar at 2012-01-25 08:42:07
9. how i can used inheritence ?
View Tutorial By: samee at 2008-02-16 12:54:27
10. i am getting the following error when i ran this p
View Tutorial By: nancy kapoor at 2008-10-07 14:26:21