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, '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.

thanks in advance.

cheers,
  dlucci

···

--
Posted via http://www.ruby-forum.com/.

:'em.ail' should work.

Stefano

···

On Sunday 19 December 2010 11:06:29 Derril Lucci wrote:

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.

thanks in advance.

cheers,
  dlucci

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)

···

2010/12/19 Derril Lucci <derril.lucci@gmail.com>:

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.