variable problem

D

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, '(e-mail address removed)', '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
 
S

Stefano Crocco

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, '(e-mail address removed)', '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

:'em.ail' should work.

Stefano
 
Z

zuerrong

2010/12/19 Derril Lucci said:
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. =C2=A0the issue arises at t= he
end of the following code block:

Net::SMTP.start('smtp.gmail.com', 25, '(e-mail address removed)', 'em.ail',
'password', :em.ail)

on the :em.ail part, it throws an error saying that ail is an undefined
method for em. =C2=A0just 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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,365
Latest member
BurtonMeec

Latest Threads

Top