# Net/smtp.rb typo

**URL:** <https://www.ruby-forum.com/t/net-smtp-rb-typo/141316>\
**Category:** Development\
**Created:** [June 24, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/net-smtp-rb-typo/141316 "2008-06-24T17:29:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Masao\_Takaku](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/977dab/32.png) [@Masao\_Takaku](https://www.ruby-forum.com/u/Masao_Takaku)\
**Post date:** [June 24, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/net-smtp-rb-typo/141316/1 "2008-06-24T17:29:50Z")

</div>

e$B$?$+$/$H$b$&$7$^$9!#e(B

net/smtp.rb e$B$KJQ?tL\>$NDV$j%\_%9$K$h$k%P%0$,$"$k$h$&$G$9!#e(B

Hiki e$B$N%F%9%HCf$K%(%i!\<$K$J$C$?$N$G5$IU$-$^$7$?!#e(B

undefined local variable or method `to’ for #\<Net::SMTP  
xxxxxxxx.xxxx.xx.xx:25 started=false\>

e$BD\>$7$F$\*$$$F$$$?$@$1$k$H=u$+$j$^$9!#e(B

# Index: lib/net/smtp.rb

— lib/net/smtp.rb (e$B%j%S%8%g%se(B 17564)  
+++ lib/net/smtp.rb (e$B:n6H%3%T!\<e(B)  
@@ -837,7 +837,7 @@

```
 def rcptto(to_addr)
   if $SAFE > 0

```

- 

```
   raise SecurityError, 'tainted to_addr' if to.tainted?

```

- 

```
   raise SecurityError, 'tainted to_addr' if to_addr.tainted?
 end
 getok("RCPT TO:<#{to_addr}>")

```

end
