EMail

 

 

In contrast to SAP-Message-Variant and the MAPI-variant can this object directly and without external help access to almost all known types of server .

 

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

www.chilkatsoft.com

The beas-object ue_chilkat serves only as an intermediary between beas-script and the Chilkat object. There are no details described, but the available methods and Propierties.

 

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= -then
  // .... not sendet...
end if
destroy=lu_email

 

Properties

 

init

initialize the object with all standard-parameter from the current user!

smtphost

set the smtp server, hostname or ip

smtpport

set smtp port, default=25

smtpssl

smtpssl

smtpuser

smtpusername

smtppwd

smtppassword

subject

subject from email

body

the body-text

apptobody

append to body

addhab

add html alternative body

addmbcc

add multiple bcc

addmcc

add multiple cc

mailfrom

from  (name, email)

addbcc

add bcc (name, email)

addmto

add multiple to

addcc

add cc (name, email)

addfile

add file attachment

adddata

add clipboard as attach

clearbcc

clear bcc

clearcc

claar cc

clearto

clear to

clearbademail

clear bad email addresses

dropatt

drop attachments

fromaddress

set from address

getstatus

get status in variable "value"

mailer

send the email

lerrortxt

get last error to screen from mailman2

lerrortxtel

get last error to screen from email2

issmtpdsncap

display check (to display)

ismrep

check if the mail a multipart/report mail (to display)

isnulocked

check if mailman is locked (to display) and variable "value". 1=free, other is locked.

quicksend

send a email in a simple way:

 

declare=lu_email=ue_api_chilkat
lu_email.email.<command>=propertie
lu_email.quicksend(from As String, to As String, subject As String, body As String, smtpServer As String)

 

sethtmlbody

set html as body

replace

set replace pattern (setreplacepattern=p1=p2)

smtplogindom

smtplogindomain

smtpauthnmeth

smtpauthnmeth

sendind

SendIndividual

sendmail

send the email

if variable "mailwithouterror" <> J, then errormessage will display on the screen

starttls

start TLS (long)

version

Version from Chilkat MailMan2-Object

 

More info see www.chilkatsoft.com (Chilkat EMail ActiveX)