From: Mohit Sindhwani Date: 2007-10-17T16:38:15+09:00 Subject: Re: how can send email message using ruby? Hi. My answers are inline. Vellingiri Arul wrote: > Mohit Sindhwani wrote: > >> Vellingiri Arul wrote: >> >>>> http://notepad.onghu.com/2007/3/26/sending-email-with-ruby >>>> >>>> >> 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. >> >> > > Hi Mohit, > Your program Error: > smtp.rb:1:in 'require': no such file to load -- action_mailer > (LoadError) > from smtp.rb:1 > OK! My sample actually doesn't use the action_mailer - it was in the other solution that was proposed to you. > >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. > Same as above. > 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. > As I understand it: 1. You have an internal SMTP server that is being used to deliver email. 2. You are using SMTP and it works for internal email addresses. 3. You would like to send email to someone@yahoo.com but that does not work. If I have understood your problems correctly, it could be a few problems. Since email sending is working internally using SMTP, I think your Ruby script is fine. The problem could be: 1. Your internal SMTP server is not set up properly. For some reason, it is not relaying messages to outside parties. In this case, email is not delivered to ANY party outside. This is a configuration problem, not related to Ruby. Check the documentation for the SMTP server that you are using. 2. If you are able to send out email to some parties externally, and specifically NOT to Yahoo or Rediffmail, it could be that the spam filters at Yahoo, rediff, etc. are blocking your email since it doesn't appear to be coming from a reputable domain. I don't know much about this problem, so I can't help. Perhaps, someone else can be of more use. Cheers, Mohit. 10/17/2007 | 3:37 PM.