Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

From field with angle bracket #67

Open
ablondin opened this Issue · 2 comments

2 participants

Alexandre Blondin Massé Daniel Choi
Alexandre Blondin Massé

Hi!

I've been struggling with sending emails through vmail. Everything works fine except when I try to send emails. I found out that the reason for that is that I shouldn't have angle brackets in the "from" field, which raises an exception. Here's what I get on my MacBookPro with Snow Leopard
alexandreblondinmasse [~]
$ vmailsend < compose_message.txt
/opt/local/lib/ruby1.9/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
Using config file .vmailrc
D, [2012-01-01T02:22:34.888057 #68799] DEBUG -- : from:"Alexandre Blondin Massé alexandre.blondin.masse@gmail.com"
D, [2012-01-01T02:22:34.888216 #68799] DEBUG -- : to:alexandre.blondin.masse@gmail.com
D, [2012-01-01T02:22:34.888315 #68799] DEBUG -- : subject:Test
D, [2012-01-01T02:22:34.906024 #68799] DEBUG -- : Delivering message with headers: ---
from: ! '"Alexandre Blondin Massé alexandre.blondin.masse@gmail.com"'
to: alexandre.blondin.masse@gmail.com
subject: Test

/opt/local/lib/ruby1.9/1.9.1/net/smtp.rb:948:in check_response': 555 5.5.2 Syntax error. ev2sm36327570qab.15 (Net::SMTPFatalError)
from /opt/local/lib/ruby1.9/1.9.1/net/smtp.rb:917:in
getok'
from /opt/local/lib/ruby1.9/1.9.1/net/smtp.rb:832:in mailfrom'
from /opt/local/lib/ruby1.9/1.9.1/net/smtp.rb:659:in
send_message'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/mail-2.3.0/lib/mail/network/delivery_methods/smtp.rb:129:in block in deliver!'
from /opt/local/lib/ruby1.9/1.9.1/net/smtp.rb:520:in
start'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/mail-2.3.0/lib/mail/network/delivery_methods/smtp.rb:128:in deliver!'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/mail-2.3.0/lib/mail/message.rb:245:in
deliver!'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/vmail-2.4.5/lib/vmail/imap_client.rb:347:in deliver'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/vmail-2.4.5/lib/vmail/sender.rb:12:in
send'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/vmail-2.4.5/bin/vmailsend:10:in <top (required)>'
from /opt/local/bin/vmailsend:19:in
load'
from /opt/local/bin/vmailsend:19:in `'

The issue is already known and has already been discussed here
http://stackoverflow.com/questions/1512004/smtp-error-with-rails-exception-notifier-plugin

Is this issue known from you? What would be the best way to deal with it with vmail ? I guess I could look in the ruby scripts or vim scripts, but I would rather avoid it if possible...

Thank you!

Alexandre Blondin Massé

Daniel Choi
Owner

Try putting your name in the .vmailrc after the username: key, and then put your email after the email: key.

Alexandre Blondin Massé

I tried both solutions

name:
email:

and

username:
email:

None works. In the first case, I get the same error, in the second one, I get a VMAIL_ERROR (VMAIL_ERROR: Invalid credentials w7if4900085qcb.59
/o).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.