gmailer

S

SonOfLilit

There are a few aspects to it:

This is were the question belongs:
http://rubyforge.org/forum/forum.php?forum_id=3738

This is about the pitfalls of how popular email clients read HTML and
therefore how you should write HTML that would display correctly.

http://www.pageresource.com/html/html_email.htm

Markaby is a great way to generate HTML, although you might want to
try what Ara announced yesterday (xx I think) which is claimed to be
more powerful.

This is an example of how to send email with Gmailer:
GMailer.connect(name, pwd) do |g|
# 'From' default gmail.com account
g.send(
:to => "(e-mail address removed), my_friend@his_company.com, (e-mail address removed)",
:cc => "(e-mail address removed)",
:subject => "Hello There!",
:body => "Hi...\n\nBlah blah blah~...",
:files => ["./my_pic.jpg", "./my_cv.txt"])

# multiple verified email addresses and choose one 'From:' email address
g.send(
:from => "(e-mail address removed)",
:to => "(e-mail address removed), my_friend@his_company.com, (e-mail address removed)",
:cc => "(e-mail address removed)",
:subject => "Hello There!",
:body => "Hi...\n\nBlah blah blah~...",
:files => ["./my_pic.jpg", "./my_cv.txt"])
end

(taken form gmailer readme).

This helps you with MIME handling so you can compose a MIME message easily:
http://rubyforge.org/projects/rubymail/

I think you can just stick the MIME message's .to_s as :body for
Gmailer#send. Experiment with it.

In case you don't know about MIME and HTML email, well... All you need
to do is have a content-type of text/html for the message body.

Google further.


I also advise you to have a look at the adopt-a-newbie project here at the ML.

Aur Saraf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Python - Hidden Text / Html Mail 3
gmailer problems. 2
[ANN] gmailer-0.0.7 2
Problems with gmailer 2
[ANN] gmailer 0.0.9 2
ruby email libraries 4
[ANN] gmailer-0.0.8 released 8
Gmailer 0

Members online

Forum statistics

Threads
474,234
Messages
2,571,178
Members
47,809
Latest member
Adisty

Latest Threads

Top