email sending...
Posted: 10 Feb 2019 0:33
Guys
Can you advise on how to send email from within VIP8CE program?
I have included the "sendMail_smtp" class in my project.
I have placed the code:
generates the error that contains
I have examined the sendMail_smtp.pro, *.i, and *cl, as well as the Wiki, example programs, and forum, to no avail.
Can you advise?
Thanks in advance
Dave
Can you advise on how to send email from within VIP8CE program?
I have included the "sendMail_smtp" class in my project.
I have placed the code:
Code: Select all
predicates
onHelpTestemail : window::menuItemListener.
clauses
onHelpTestemail(_Source, _MenuTag) :-
MailServer = sendMail_smtp::new("smtp.googlemail.com"),
MailServer:smtpPort := 587,
MailServer:send(["anyone@hcmed.org"], [], "daveplummermd@gmail.com", "Wow", "This is great content!"),
!.
Naturally, I suspect this is because I am opening a socket with smtp.googlemail.com without authentification, but I do not see where to authenticate.----------------------------------------
Continued exception in sendMail package
Server Response = 501-5.5.4 Empty HELO/EHLO argument not allowed, closing connection.
501 5.5.4 https://support.google.com/mail/?p=helo l53sm7787346qtc.33 - gsmtp
sendMailException (sendMail_smtp)
sendMail_smtp::readLine
pfc\web\sendMail_smtp\sendMail_smtp.pro(111,13)
I have examined the sendMail_smtp.pro, *.i, and *cl, as well as the Wiki, example programs, and forum, to no avail.
Can you advise?
Thanks in advance
Dave