Just press a button to mail the letter, so only pure joined the following content in cb_1,
JMAIL:
Oleobject jmail
Jmail=Create OLEObject
Jmail. ConnectToNewObject (" Jmail. The Message ")
Jmail. Charset="GB2312"//Chinese "GB2312"
Jmail. ISOEncodeHeaders=True
Jmail. Silent=True
Jmail. Logging=True
Jmail. From="[email protected]"//the sender email address
Jmail. FromName="user"//the sender
Jmail. Subject="TEST"/email/Subject
Jmail. MailServerUserName="user"//the sender email login account
Jmail. MailServerPassword="password"//send a mailbox user password
Jmail. Priority=3//Priority
Jmail. AddRecipient (" [email protected] ")//recipient mailbox
Jmail. Body="test" + "~ r ~ n//email content
IF Jmail. Send (" mail.test.com ") THEN//ls_host to Send a mail server
Messagebox (" Info ", "to send success!" )
The ELSE
Messagebox (" Info ", "send failed!" )
END the IF
Jmail. Close ()
Destroy Jmail
Always an error, do not know how should I revised, please superiors guidance,
Appreciate
CodePudding user response:
To what's wrong? The error message coming.CodePudding user response:
I'm sorry, wrong message is this:The original concept terminated.
Error: Error accessing external object property charset at line 4 in clicked even of object cb_1 of wgenapp_frame.
CodePudding user response:
What is line 4 wgenapp_frame cb_1 of event? Error in it.CodePudding user response:
I know,But the line 4 is:
Jmail. Charset="GB2312"//Chinese "GB2312"
This can't see which side has a problem?
If I put the line 4 annotations, error message to turn the line 5,
CodePudding user response:
I'm sorry I have goal, I forgot to register the DLL,Also consult predecessors, how should I with attachment?
CodePudding user response:
There I found a file (after installing the JMAIL file), thank you very much for helping me,Jmail. AddAttachment (" C: \ 001. TXT ")
CodePudding user response:
There is no right register jmail DLL