Topic: How to solve this " Must issue a STARTTLS command first"

i am new for ruby, i am trying to send email from ruby program , but i am getting one exception that is,
Exception occured : 530  5.7.0 Must issue a STARTTLS command first
  I want to know how to solve this exception, give some ideas or some example programs
thanks in advance

Re: How to solve this " Must issue a STARTTLS command first"

STARTTLS is a sendmail command to initiate a secure connection. So it looks like you need to do one of those.

Maybe you could post your code, so that we can have at least some clue of what you are doing, and how we could possibly help you?

Re: How to solve this " Must issue a STARTTLS command first"

Are you trying to send mail through a Google Account?
F so, Google needs to run on SSL ... a couple of people have done code to support this and a search will point you in the right direction. Or PM me, I have a lib you can use.

Toby Hede
===================================================
FiniteStateMachine - Software Development for Social Networks
===================================================

Re: How to solve this " Must issue a STARTTLS command first"

@tobyhede:  I was getting the same error as @logesh.  I installed the smtp-tls gem and problem solved.  Thank you.

Re: How to solve this " Must issue a STARTTLS command first"

You mean this solved the problem?

http://github.com/ambethia/smtp-tls/tree/master

Re: How to solve this " Must issue a STARTTLS command first"

I just downloaded http://github.com/ambethia/smtp-tls/tree/master and it went to the desktop and unzipped. Do I need to put it in a diff place? Activate anything?

I'm trying to get my Eudora to recognize my gmail account and am having trouble.
The file I listed above does have the "STARTTLS" file inside... among others.

Any help would be appreciated.

Re: How to solve this " Must issue a STARTTLS command first"

I just downloaded http://github.com/ambethia/smtp-tls/tree/master and it went to the desktop and unzipped. Do I need to put it in a diff place? Activate anything?

I'm trying to get my Eudora to recognize my gmail account and am having trouble.
The file I listed above does have the "STARTTLS" file inside... among others.

Any help would be appreciated.

Re: How to solve this " Must issue a STARTTLS command first"

How to solve this