1. Philip Troise
  2. PowerBuilder
  3. Monday, 10 June 2024 15:48 PM UTC
Powewrbuilder version 2022 R2 build 2819


Rolands SMTP using the cl32.dll, which stopped being supported years ago, works on all computers except
on a HP Laptop Windows 11 Pro, latest version only,

Why does the test SMTP sample NOT WORK on my computer that does using Rolland's SMTP using cl32.dll ???

I get an error code -14 when using port 465, -11 when using port 25




integer li_rc
SMTPClient lnv_SmtpClient

lnv_SmtpClient = CREATE SMTPClient

//Sets the email-sender information
//lnv_SmtpClient.Host = "smtp.testmail.com"
lnv_SmtpClient.Host = ar_server
//messagebox("ar_server", ar_server)

//lnv_SmtpClient.Port = 25
//lnv_SmtpClient.Port = 587
lnv_SmtpClient.Port = lui_port
//messagebox("lui_port", lui_port)

//lnv_SmtpClient.Username = "tester001@testmail.com"
lnv_SmtpClient.Username = ar_send_from_name
//messagebox("ar_send_from_name", ar_send_from_name)

//lnv_SmtpClient.password = "Mypassword001"
lnv_SmtpClient.password = ls_pwd
//messagebox("ls_pwd", ls_pwd)

lnv_SmtpClient.EnableTLS = True

//Sets the email message
//lnv_SmtpClient.Message.SetSender("tester001@testmail.com","Tester001")
lnv_SmtpClient.Message.SetSender(ar_send_from_email, ar_send_from_name)

//lnv_SmtpClient.Message.AddRecipient("tester002@testmail.com")
lnv_SmtpClient.Message.AddRecipient(ar_send_to_email)

lnv_SmtpClient.Message.Subject = "SMTPClient Test Message"
lnv_SmtpClient.Message.TextBody = "SMTPClient example message body"


//Sends the email
li_rc = lnv_SmtpClient.Send()

IF li_rc = 1 THEN
Messagebox('SMTPClient','Mail sent successfully')
ELSE
Messagebox('SMTPClient' ,'Email sending failed. Return ' + String(li_rc) + '.', StopSign!)
END IF

DESTROY lnv_SmtpClient

 

Philip Troise Accepted Answer Pending Moderation
  1. Thursday, 13 June 2024 15:44 PM UTC
  2. PowerBuilder
  3. # 1
Rolands SMTP using the cl32.dll although are no longer being supported, but still works on all other computer except one,
on a HP Laptop Windows 11 Pro, latest version only

Why does the test SMTP sample NOT WORK at all???
Comment
There are no comments made yet.
Bruce Armstrong Accepted Answer Pending Moderation
  1. Tuesday, 11 June 2024 15:02 PM UTC
  2. PowerBuilder
  3. # 2

Same response as the Appeon guy posted in the earlier thread.

By default, Google doesn't allow you to use username/password authentication from third party tools for mail.  It's something you have to enable first.

https://support.google.com/accounts/answer/6010255?hl=en

Comment
  1. Miguel Leeuwe
  2. Tuesday, 11 June 2024 17:12 PM UTC
And there's like three changes this year for google authentication that will make things much more difficult. We'll have to end up using OAuth 2 in a pb webview2 control to ask for the credentials or write something in a C# DLL.

For now I haven't seen they're going to retire authentication, using an appkey that you'd have to set up in your google account (and then you can use the key just as if it's your password.).
  1. Helpful
  1. Miguel Leeuwe
  2. Tuesday, 11 June 2024 17:15 PM UTC
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Monday, 10 June 2024 17:59 PM UTC
  2. PowerBuilder
  3. # 3
Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Monday, 10 June 2024 17:45 PM UTC
  2. PowerBuilder
  3. # 4

Hi, Phillip -

What PB version, release and build are you using?

It's always a good idea to include this information whenever you post a question, regardless of the topic... Saves someone from having to ask and saves you from having to respond.

Best regards, John

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.