From: Vellingiri Arul Date: 2007-10-17T15:55:29+09:00 Subject: Re: how can send email message using ruby? Mohit Sindhwani wrote: > Vellingiri Arul wrote: >>> http://notepad.onghu.com/2007/3/26/sending-email-with-ruby >>> 10/16/2007 | 6:34 PM. >> > Hi, please explain your question more clearly. I think you asked a > similar question in a separate thread (relating to POP) and I don't know > what you require. > > It appears that your concepts on email are not very clear. Please do > read about SMTP and IMAP servers for sending email. > > To the best of my knowledge, Yahoo does not let you use/ access their > SMTP servers for free. You will need to sign for some service. To the > best of my knowledge, there's no easy and reliable way to use Yahoo > webmail from a script although some people have tried that. If you sign > up for a service from Yahoo, then you will need to use code similar to > the one I gave (or the ActionMailer example that was posted in response > to mine) - either way, you need to spend some time understanding how > email works and what the protocols mean. > > Best Regards > Mohit. Hi Mohit, Your program Error: smtp.rb:1:in 'require': no such file to load -- action_mailer (LoadError) from smtp.rb:1 From that I came to know some modules and classes and lib are not installed. That's why it was telling error. In your program is not working properly.It is giving some error. My question is that using the smtp how can I sen the email to outside.For exampl,rediff,yahoomail. we want to require 'net/smtp' For me also It is working file within intranet. But it is not going outside email.for that I want to know some knowledge for sending the outside email. This is my question. This is my example: require 'net/smtp' from="vellingiri@bksys.co.in" to="vellingiri@bkys.co.in" smtp=Net::smtp::new('192.168.1.1') email="From :vellingiri@bksys.co.in\nSubject : Hello\n\n\Hai,this is wrking wery fine.\n\n" smtp.start smtp.sendmail(email,from,to) smtp.finish I am not asking only sending email using smtp,other than that any classes is there. But smtp is is not working. You want more explanation for this. by vellingiri -- Posted via http://www.ruby-forum.com/.