Professional Documents
Culture Documents
Once the operation has been understood write a function for writing runtime the file is easy:
Subprog SENDMAIL(NAMEFROM, ADRFROM, ADRTO, ADRCC, SUBJECT, TEXT, SERVER)
# sagedev.it
Value Char NAMEFROM() #sender name
Value Char ADRFROM() #sender mail address
Value Char ADRTO() #recipient mail address (for multiple addresses
separate them with ";")
Value Char ADRCC() #in copy mail address
Value Char SUBJECT() #mail title
Value Char TEXT() #mail message
Value Char SERVER() #mail server: i.e. mail.dominio.com
NAMEFROM= vireblc(NAMEFROM,2)
If NAMEFROM=""
NAMEFROM=ADRFROM
Endif
In fact, once this function is inserted in an our library, with a simple call we do all!
Kill instructions are necessary for deleting the temporary global variables.