Variable problem

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, ‘[email protected]’, ‘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.

thanks in advance.

cheers,
dlucci

On Sunday 19 December 2010 11:06:29 Derril L. wrote:

thanks in advance.

cheers,
dlucci

:‘em.ail’ should work.

Stefano

2010/12/19 Derril L. [email protected]:

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)