1. 근열 박
  2. PowerBuilder
  3. Tuesday, 8 October 2024 11:13 AM UTC

I Like to send email by STMPclient

I did Coding

pb_email Button clicked event

 

Integer li_rc
SMTPClient lnv_SmtpClient

lnv_SmtpClient = CREATE SMTPClient

//set the email account information
lnv_SmtpClient.Host = "smtp.cafe24.com"
lnv_SmtpClient.Port = 587
lnv_SmtpClient.Username = "nexterp@nextdata.cafe24.com"
lnv_SmtpClient.password = "next2724!!"
lnv_SmtpClient.EnableTLS = False
lnv_SmtpClient.Timeout = 3

//set the email message
lnv_SmtpClient.Message.SetSender("nexterp@nextdata.cafe24.com","박근열")
lnv_SmtpClient.Message.AddRecipient("h8534054@daum.net")
li_rc = lnv_SmtpClient.Message.AddAttachment("E:\파워빌더자료\디비용량줄이기.txt")
lnv_SmtpClient.Message.Subject = "SMTPClient Test Message test4"
lnv_SmtpClient.Message.TextBody = "SMTPClient example message body4"

//send the email message
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

 

 

// I did success to send email

 

But appear This MessageBox

I try click cancel button 20Times

This messageBox disappear

 

and then system down

How Can I Do?

Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 8 October 2024 12:09 PM UTC
  2. PowerBuilder
  3. # 1

That message usually occurs when a deployed app is being run from a network drive and the EXE is unable to load an object from one of the PBD files due to an issue with the connection to the server hosting the network drive.

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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.