Update: GoDaddy has given me a port 25 option that may be a work-around for now....
I need to include email output in my VP application. "sendMail_smtp.pro" was perfect right up to point where I found out the GoDaddy Outlook 365 smtp server I'd like to use requires a setting that the VP sendMail doesn't have; starttls = true.
Part of the fun is the username and password have to be encrypted like so:
C:\OpenSSL\bin>echo info@myGoDaddyEmailDomain.com|openssl enc -base64
The way things are now I don't get the chance to use the encrypted Username or Password; the Outlook 365 server errors out with:
Code: Select all
eMail Token: 220 Message=:EHLO myGoDaddyEmailDomain.com eMail Token: 250 AUTH LOGIN hjashjifhasfhjsa (I send AUTH LOGIN and the encrypted email Username) eMail Token: 504 (and get back 504 unrecognized authentication type) ======================================== Dump: 2018-02-04 10:20:18 ---------------------------------------- Exception: sendMailException (sendMail_smtp) Continued exception in sendMail package Predicate name = readLine SourceCursor = pfc\web\sendMail_smtp\sendMail_smtp.pro(113,13) Server Response = 504 5.7.4 Unrecognized authentication type [DM5PR0102CA0001.prod.exchangelabs.com] raised 2018-02-04 10:20:18 ThreadId: 6100 Class name: sendMail_smtp Predicate name: readLine
Here is the pertinent code to recreate the error. It includes slight modification/addition to have sendMail_smtp.pro send "AUTH LOGIN" to Outlook 365:
Code: Select all
constants username="kjhkhjaskfhh the encrypted Username". password="sgdsf25gfsfg the encrypted password". predicates sendEmail : (socket Socket). clauses sendEmail(SOCKET) :- Message_AUTH_LOGIN = string::concat("AUTH LOGIN ", username,"\r\n"), msglayer::msglay_WriteStr(SOCKET, Message_AUTH_LOGIN), stdio::write(Message_AUTH_LOGIN), readLine(SOCKET), %The 504 error has already occurred at this point.... Message_Password = string::concat(password, "\n"), msglayer::msglay_WriteStr(SOCKET, Message_Password), stdio::write(Message_Password), readLine(SOCKET), Message_MAIL_FROM = string::concat("MAIL FROM:","info@myGoDaddyEmailDomain.com", "\r\n"), msglayer::msglay_WriteStr(SOCKET, Message_MAIL_FROM), stdio::write(Message_MAIL_FROM,"\n"), readLine(SOCKET),