In contrast to the SAP-Message-Variant and the MAPI-variant this object can directly access almost all known server types.
The object requires for this an Active-X component, which normally is installed automatically. If due to lack of rights, the installation did not take place, it can be fetched later. For this call C: \ program files \ Beas software \ Bea \ cd \ beasreg.bat
E-mail functions are addressed with:
declare=lu_email=ue_api_chilkat
lu_email.email.init
lu_email.email.<command>=propertie
FTP-functions are addressed with
declare=lu_ftp=ue_api.ue_api_chilkat
lu_ftp.ftp.<command>=propertie
The Chilkat object is described in detail by the producer of the object
The beas-object ue_chilkat serves only as an intermediary between BeasScript and the Chilkat object. There are no details described, but the available methods and properties.
When the email object is declared, it is automatically initialized.
All credentials are determined automatically from the user settings (email, password, SMTP, etc.).
Thus, if all data are properly stored, only the recipient or text, body and attachments must be indicated.
declare=lu_email=ue_api_chilkat
lu_email.email=init
lu_email.email=body=<body text>
lu_email.email=subject=<subject text>
lu_email.email=mailto=<address to name>,<adress to email-adress>
lu_email.email=addcc=<address to name>,<adress to email-adress>
lu_email.email=addfile=<filename>
lu_email.email=addfile=<filename>
lu_email.email=sendmail
if <return> n= -1 then
// .... not sendet...
end if
destroy=lu_email
Properties
init |
initializes the object with all standard-parameter from the current user! |
smtphost |
sets the smtp server, hostname or ip |
smtpport |
sets smtp port, default=25 |
smtpssl |
smtpssl |
smtpuser |
smtpusername |
smtppwd |
smtppassword |
subject |
subject of the email |
body |
the body-text |
apptobody |
appends to body |
addhab |
adds html alternative body |
addmbcc |
adds multiple bcc |
addmcc |
adds multiple cc |
mailfrom |
from (name, email) |
addbcc |
adds bcc (name, email) |
addmto |
adds multiple to |
addcc |
adds cc (name, email) |
addfile |
adds file attachment |
adddata |
adds clipboard as attach |
clearbcc |
clears bcc |
clearcc |
clears cc |
clearto |
clear to |
clearbademail |
clears bad email addresses |
dropatt |
drops attachments |
fromaddress |
sets from address |
getstatus |
gets status in variable "value" |
mailer |
sends the email |
lerrortxt |
gets last error to screen from mailman2 |
lerrortxtel |
gets last error to screen from email2 |
issmtpdsncap |
displays check (to display) |
ismrep |
checks if the mail is a multipart/report mail (to display) |
isnulocked |
checks if mailman is locked (to display) and variable "value". 1=free, other is locked. |
quicksend |
sends a email in a simple way:
declare=lu_email=ue_api_chilkat
|
sethtmlbody |
sets html as body |
replace |
sets replace pattern (setreplacepattern=p1=p2) |
smtplogindom |
smtplogindomain |
smtpauthnmeth |
smtpauthnmeth |
sendind |
SendIndividual |
sendmail |
sends the email if variable "mailwithouterror" <> J, then an errormessage will be displayed on the screen |
starttls |
starts TLS (long) |
version |
Version from Chilkat MailMan2-Object |
More info see www.chilkatsoft.com (Chilkat EMail ActiveX)