Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
How to send email from Ruby
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Shery  
View profile  
 More options Apr 22, 7:22 pm
From: Shery <sher...@gmail.com>
Date: Wed, 22 Apr 2009 16:22:29 -0700 (PDT)
Local: Wed, Apr 22 2009 7:22 pm
Subject: How to send email from Ruby
Can anyone explain the process to send email using RUBY

Shery


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam Palmblad  
View profile  
 More options Apr 23, 1:06 pm
From: Adam Palmblad <apalmb...@gmail.com>
Date: Thu, 23 Apr 2009 10:06:28 -0700
Local: Thurs, Apr 23 2009 1:06 pm
Subject: Re: [vanrb] How to send email from Ruby

Hi Shery,

Do you mean Ruby or Rails?

Rails involves using ActionMailer, but if you're working in pure ruby,
you've got a lot more options...

-Adam


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shery yes  
View profile  
 More options Apr 23, 4:55 pm
From: shery yes <sher...@gmail.com>
Date: Thu, 23 Apr 2009 13:55:23 -0700
Local: Thurs, Apr 23 2009 4:55 pm
Subject: Re: [vanrb] Re: How to send email from Ruby

Yes, I am working on only RUBY, can you help me in this regard. I am using
selenium rc with RUBY,,i have to send an email to a id
sher...@gmail.comwhen the test case fails

Thanks & Regards
Shery


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shery  
View profile  
 More options Apr 23, 7:35 pm
From: Shery <sher...@gmail.com>
Date: Thu, 23 Apr 2009 16:35:22 -0700 (PDT)
Local: Thurs, Apr 23 2009 7:35 pm
Subject: Re: How to send email from Ruby
Hi Adam,

I am working on latest build of RUBY on Window XP SP2. I am not able
to send an email to my personal domain as well as gmail.com

Thanks & Regards
Srihari

On Apr 23, 1:55 pm, shery yes <sher...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam Palmblad  
View profile  
 More options Apr 23, 8:51 pm
From: Adam Palmblad <apalmb...@gmail.com>
Date: Thu, 23 Apr 2009 17:51:27 -0700
Local: Thurs, Apr 23 2009 8:51 pm
Subject: Re: [vanrb] Re: How to send email from Ruby

I've used TMail in the past for command line mail scripts.
http://tmail.rubyforge.org

Pulling together a quick example from the quickstart guide, I'd do something
like:

  require 'tmail'

  # Example 1: create mail only in memory
  mail = TMail::Mail.new

  mail.to = '...@d.com'
  mail.from = "Test <a...@b.com>'
  mail.subject = 'test mail'
  mail.date = Time.now
  mail.body = 'This is test mail.'

    Net::SMTP.start('your.smtp.server', 25, 'from_domain, 'username',
password) do |smtp|
      smtp.send_message mail.to_s, mail.from, mail.to
    end


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shery yes  
View profile  
 More options Apr 23, 10:08 pm
From: shery yes <sher...@gmail.com>
Date: Thu, 23 Apr 2009 19:08:41 -0700
Local: Thurs, Apr 23 2009 10:08 pm
Subject: Re: [vanrb] Re: How to send email from Ruby

Hi Adam,

I am using the script as below on windows, i have installed the Tmail using
gem. Following time out error occurs during execution, can you help me with
this.

C:/RUBY/lib/ruby/1.8/timeout.rb:60:in `rbuf_fill': execution expired
(Timeout::Error)
 from C:/RUBY/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill'
 from C:/RUBY/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
 from C:/RUBY/lib/ruby/1.8/net/protocol.rb:126:in `readline'
 from C:/RUBY/lib/ruby/1.8/net/smtp.rb:663:in `recv_response'
 from C:/RUBY/lib/ruby/1.8/net/smtp.rb:395:in `do_start'
 from C:/RUBY/lib/ruby/1.8/net/smtp.rb:685:in `critical'
 from C:/RUBY/lib/ruby/1.8/net/smtp.rb:395:in `do_start'
 from C:/RUBY/lib/ruby/1.8/net/smtp.rb:377:in `start'
 from C:/RUBY/lib/ruby/1.8/net/smtp.rb:315:in `start'
 from email1.rb:11

Thanks & Regards
Shery


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam Palmblad  
View profile  
 More options Apr 26, 7:37 pm
From: Adam Palmblad <apalmb...@gmail.com>
Date: Sun, 26 Apr 2009 16:37:29 -0700
Local: Sun, Apr 26 2009 7:37 pm
Subject: Re: [vanrb] Re: How to send email from Ruby

The error message looks like it's having trouble receiving a response or
connecting to the server.  Some ISPs will block port 25 - try seeing if your
mail server is available on a port besides 25.

-Adam


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google