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: <[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



Subscribe to Tutorials

Related Tutorials

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

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Nice example of System.arraycopy()function. Thank
View Tutorial          By: Rahul Raj at 2015-08-17 03:11:44

2. i cannot add attachment
its saying
&

View Tutorial          By: Rintu Das at 2012-05-04 18:07:48

3. i m novice for jsp.
i enjoy to test jsp cod

View Tutorial          By: thanhtunaung at 2011-08-18 07:44:10

4. Thanks for providing this page it works with local
View Tutorial          By: Dharam Jaswal at 2012-02-02 13:19:24

5. Thanks for the clear illustration of the MVC2 arch
View Tutorial          By: Tayo at 2010-01-03 12:53:46

6. Thanks for the insight. Easily understood.
View Tutorial          By: Bobby Deol at 2014-01-17 00:48:44

7. im taking hard time in doing programming
View Tutorial          By: joshua louis sumalinog at 2014-12-11 03:26:46

8. sir will you please tell me how i get out of all t
View Tutorial          By: mitali at 2012-05-06 09:54:49

9. Only first row is exported, help to export all the
View Tutorial          By: Achyut at 2014-12-18 04:26:26

10. Hi,

Thanks a lot to the writer of t

View Tutorial          By: Bhushan at 2007-04-27 04:56:00