[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Sending emails

David Anderson

4/11/2008 1:32:00 PM


Is there a gem for sending emails?

I want to automate a process for sending emails containing images. I
have it running in perl using Mime::Lite, and I was hoping that there
was something similar in Ruby.

--
Regards
David

7 Answers

Thorsten Müller

4/11/2008 2:24:00 PM

0

have a look at ActionMailer:
http://api.rubyonrails.org/classes/ActionMailer...

look for attachment, this should allow to add images, i guess (didn't
try it, though)
--
Posted via http://www.ruby-....

David Anderson

4/11/2008 2:44:00 PM

0

On Fri, 11 Apr 2008 23:24:16 +0900
Thorsten Mueller <thorsten@80beans.com> wrote:

> have a look at ActionMailer:
> http://api.rubyonrails.org/classes/ActionMailer...
>
> look for attachment, this should allow to add images, i guess (didn't
> try it, though)

But surely that is a Rails solution, not a Ruby solution?

--
Regards
David

Rick DeNatale

4/11/2008 4:44:00 PM

0

On Fri, Apr 11, 2008 at 10:43 AM, David Anderson <lists@pern.co.uk> wrote:
> On Fri, 11 Apr 2008 23:24:16 +0900
> Thorsten Mueller <thorsten@80beans.com> wrote:
>
> > have a look at ActionMailer:
> > http://api.rubyonrails.org/classes/ActionMailer...
> >
> > look for attachment, this should allow to add images, i guess (didn't
> > try it, though)
>
> But surely that is a Rails solution, not a Ruby solution?

actionmailer is a separate gem like activerecord.

I believe that, like activerecord, it can be used independently of
Rails, although I've not done that personally.

--
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denh...

James Tucker

4/11/2008 5:51:00 PM

0


On 11 Apr 2008, at 15:43, David Anderson wrote:
> On Fri, 11 Apr 2008 23:24:16 +0900
> Thorsten Mueller <thorsten@80beans.com> wrote:
>
>> have a look at ActionMailer:
>> http://api.rubyonrails.org/classes/ActionMailer...
>>
>> look for attachment, this should allow to add images, i guess (didn't
>> try it, though)
>
> But surely that is a Rails solution, not a Ruby solution?

How about EventMachine with it's SmtpClient, I love it :-)

>
>
> --
> Regards
> David
>


Phillip Gawlowski

4/11/2008 6:16:00 PM

0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Anderson wrote:
| On Fri, 11 Apr 2008 23:24:16 +0900
| Thorsten Mueller <thorsten@80beans.com> wrote:
|
|> have a look at ActionMailer:
|> http://api.rubyonrails.org/classes/ActionMailer...
|>
|> look for attachment, this should allow to add images, i guess (didn't
|> try it, though)
|
| But surely that is a Rails solution, not a Ruby solution?
|

No reason that ActonMailer is limited to Eails alone. ;)

However, I'd cut out the middleman, and go for tmail directly.

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan

Abstain from wine, women, and song; mostly song.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail....

iEYEARECAAYFAkf/quUACgkQbtAgaoJTgL8iCwCeIpyJ1KEbspFslxlhuFX4N3Zm
//kAnjgyJAVKGHsAy+/SOE2Ej4jKUI7G
=Vj7b
-----END PGP SIGNATURE-----

Gordon Thiesfeld

4/11/2008 6:43:00 PM

0

On Fri, Apr 11, 2008 at 1:16 PM, Phillip Gawlowski
<cmdjackryan@googlemail.com> wrote:
>
> However, I'd cut out the middleman, and go for tmail directly.
>

You might also want to look at MailFactory

http://rubyforge.org/projects/ma...
http://yehudakatz.com/2007/09/03/merbs-mailer-is-awesome-if-i-do-say-...


Gordon Thiesfeld

Phillip Gawlowski

4/11/2008 7:17:00 PM

0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gordon Thiesfeld wrote:
| On Fri, Apr 11, 2008 at 1:16 PM, Phillip Gawlowski
| <cmdjackryan@googlemail.com> wrote:
|> However, I'd cut out the middleman, and go for tmail directly.
|>
|
| You might also want to look at MailFactory
|
| http://rubyforge.org/projects/ma...
|
http://yehudakatz.com/2007/09/03/merbs-mailer-is-awesome-if-i-do-say-...


Oh, that looks good. Thanks for the tip. :)

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan

~ "When life gives you a lemon, make lemonade." -Susie "I say, when
life gives you a lemon, wing it right back and add some lemons of your
own!" -Calvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail....

iEYEARECAAYFAkf/uTwACgkQbtAgaoJTgL+hlwCcD6fuV9mF2063xK2e3Bkl4rdv
crEAoIHjG4cwpqAY0mOM1vmeUIx4CaNX
=KgNr
-----END PGP SIGNATURE-----