PxPlus User Forum

Main Board => Knowledge Base / Training => Tips and Techniques => Topic started by: PxPlus on May 31, 2018, 10:35:39 AM

Title: How to pass the userid and password to *web Email
Post by: PxPlus on May 31, 2018, 10:35:39 AM
When you pass is the SMTP Server Name add + ";;" + user$ + ";" + pswd$

Example:

  CALL "*web/email",ERR=SEND_HTML_ERR,FROMADDRESS$,
     "",TOADDRESS$,CCADDRESS$,BCCADDRESS$,SUBJECT$,
     MESSAGE$,ATTACHMENTS$,OPTIONS$,SMTPSERVER$+";;"+user$+";"+pswd$,
     0,0,BODYENCODING$,ERASEIT,ERRORMESG$,SENTDIRECTORY$,SAVEDFILENAME$

This will pass the userid and password specified to the SMTP server.