From: zuerrong Date: 2010-12-19T20:51:22+09:00 Subject: Re: variable problem 2010/12/19 Derril Lucci : > so i am writing a program that sends email via an smtp server on gmail. > the problem is that my email has a "." in it.  the issue arises at the > end of the following code block: > > Net::SMTP.start('smtp.gmail.com', 25, 'em.ail@gmail.com', 'em.ail', > 'password', :em.ail) > > on the :em.ail part, it throws an error saying that ail is an undefined > method for em.  just curious if there is a way to represent 'em.ail' in > a way that will work. > Net::SMTP supports only there auth methods: PLAIN, LOGIN and CRAM MD5. em.ail is NOT a method for the auth. # PLAIN Net::SMTP.start('your.smtp.server', 25, 'mail.from.domain', 'Your Account', 'Your Password', :plain) # LOGIN Net::SMTP.start('your.smtp.server', 25, 'mail.from.domain', 'Your Account', 'Your Password', :login) # CRAM MD5 Net::SMTP.start('your.smtp.server', 25, 'mail.from.domain', 'Your Account', 'Your Password', :cram_md5)