I'm having a problem sending emails via the email service because authentication fails.
Per the documentation, I used telnet as a sanity check, and I can authenticate, and send emails via telnet. What I had to do in order to accomplish this was to first convert my user name and password to base64 encoding using a free utility. Does the email service do the base64 conversion?
Here's some follow up infoprmation that will hopefully enable someone to help me debug:
STAF - 3.4.11
Email Service - 3.3.6
Email service configuration string in my config file:
SERVICE email LIBRARY JSTAF EXECUTE c:/staf/ext_services/email/STAFEmail.jar \
PARMS "MAILSERVER mailserver.company.com PORT 587"
Here's an example email service command string that I think should work, but doesn't:
STAF local EMAIL SEND TO personal_user@personal_email.com FROM email@example.com MESSAGE "FYI" SUBJECT "Test" AUTHUSER work_user AUTHPASSWORD work_pwd
Here's the details of the successful telnet session:
telnet mailserver.company.com 587
220 mailserver.company.com Microsoft ESMTP MAIL Service ready at Mon, 3 Dec 2012 16:53:48 -0800
250-AUTH NTLM LOGIN
250-X-EXPS GSSAPI NTLM
235 2.7.0 Authentication successful
mail from: firstname.lastname@example.org
250 2.1.0 Sender OK
rcpt to: personal_user@personal_email.com
250 2.1.5 Recipient OK
354 Start mail input; end with <CRLF>.<CRLF>
blah blah blah…
250 2.6.0 <email@example.com> Queued mail for delivery
I'm working on a Windows 7 machine, and don't have any details about the mail server other than the ip address and port number.
Any help would be appreciated.
The current version of the Email service does do base64 encoding encoding. You can see the cvs diff of the code added to support the AUTHUSER option in Feature #3032716 "Email service: smtp-auth option required" at Email service: smtp-auth option required. However, there is also a note in this feature that says: "Note that since the mail servers we use
do not allow authentication, we have not tested this feature." So, it's possible more tweaking needs to be done. Feel free to look at the Email service source code and make changes and submit a patch.
Had a typo in the first sentence of my previous comment. I meant to say the Email service does do base64 encoding of the user name and password.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.