beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 340

background image

S

END

M

AIL

(

RCPT

,

SUBJECT

,

BODY

)

V

LINX

F

IELDBUS

G

ATEWAY

M

ANAGER

U

SER

M

ANUAL

P

AGE

324

S

END

M

AIL

(

RCPT

,

SUBJECT

,

BODY

)

A

RGUMENT

T

YPE

D

ESCRIPTION

rcpt

int

The recipient’s index in the database’s address book.

subject

cstring

The required subject line for the email.

body

cstring

The required body text of the email.

D

ESCRIPTION

Sends an email from the Gateway. The function returns immediately, having first added the
required email to the system’s mail queue. The message will be sent using the appropriate
mail transport as configured in the database.

Note: The first recipient is 0.

F

UNCTION

T

YPE

This function is active.

R

ETURN

T

YPE

This function does not return a value.

E

XAMPLE

SendMail(1, “Test Subject Line”, “Test Body Text”)