# An error occurred while sending mail (530 5.7.0 Must issue a STARTTLS command first. 15sm1058080bwz

**URL:** <https://www.ruby-forum.com/t/an-error-occurred-while-sending-mail-530-5-7-0-must-issue-a-starttls-command-first-15sm1058080bwz/179361>\
**Category:** Mongrel\
**Created:** [November 23, 2009, 1:40pm UTC](https://www.ruby-forum.com/t/an-error-occurred-while-sending-mail-530-5-7-0-must-issue-a-starttls-command-first-15sm1058080bwz/179361 "2009-11-23T13:40:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![antonaylward](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eb8c5e/32.png) [@antonaylward](https://www.ruby-forum.com/u/antonaylward)\
**Post date:** [November 23, 2009, 1:40pm UTC](https://www.ruby-forum.com/t/an-error-occurred-while-sending-mail-530-5-7-0-must-issue-a-starttls-command-first-15sm1058080bwz/179361/1 "2009-11-23T13:40:48Z")

</div>

I get an error after configured everything as in this tutorial:

> **[Setup Redmine to send email using GMail - Redmine Blog - The Official Redmine...](https://www.redmineblog.com/articles/setup-redmine-to-send-email-using-gmail/)**
>
> RedmineBlog.com is the official blog for the Redmine Project Management application.

_My email.yml:_

# Outgoing email settings

meglio:  
delivery\_method: :smtp  
smtp\_settings:  
tls: true  
address: “[smtp.gmail.com](http://smtp.gmail.com)”  
port: ‘587’  
domain: “[smtp.gmail.com](http://smtp.gmail.com)”  
authentication: :plain  
user\_name: “removed\_email\_address@domain.invalid”  
password: “xxxxx”

My RoR:

\*\>rails -v  
Rails 2.2.2

> ruby -v  
> ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]\*

Any ideas?

Thanks,  
Anton

---

<div class="post-metadata">

**Author:** ![antonaylward](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eb8c5e/32.png) [@antonaylward](https://www.ruby-forum.com/u/antonaylward)\
**Post date:** [November 23, 2009, 2:13pm UTC](https://www.ruby-forum.com/t/an-error-occurred-while-sending-mail-530-5-7-0-must-issue-a-starttls-command-first-15sm1058080bwz/179361/2 "2009-11-23T14:13:00Z")

</div>

On Mon, Nov 23, 2009 at 13:16, Anton A.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> Any ideas?

Well, I’d suggest two alternatives:

1. Tell us what makes this a _mongrel_ problem. (It looks like a rails  
or  
email problem, and those are bound to be ignored without comment on this  
list.)
2. Try one of the rails lists or a rails group on IRC. You are more  
likely  
to get email help there.

HTH,

/David

---

<div class="post-metadata">

**Author:** ![antonaylward](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eb8c5e/32.png) [@antonaylward](https://www.ruby-forum.com/u/antonaylward)\
**Post date:** [November 23, 2009, 4:42pm UTC](https://www.ruby-forum.com/t/an-error-occurred-while-sending-mail-530-5-7-0-must-issue-a-starttls-command-first-15sm1058080bwz/179361/3 "2009-11-23T16:42:15Z")

</div>

Thanks, David, I’ll try option #2.  
Anton
