|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > PDMSystem > DBWSendEMailTLS |
Same as DBWSendEmail3 but allowing servers that implement the TLS protocol; a port number must be specified.
Sub DBWSendEMailTLS(SendTo, Subject, MailBody, HTML, SendFrom, DisplayMsg, AttachmentPath, SMTPServer, LoginUser, LoginPassword, port)
SendTo |
a semicolon separated list of the receivers |
|---|---|
Subject |
e-mail subject |
MailBody |
body of the e-mail message |
HTML |
format of the e-mail body |
SendFrom |
sender |
DisplayMsg |
Boolean. |
AttachmentPath |
path of document to attach to the e-mail. |
SMTPServer |
outgoing mail server; it's also possible to specify a port: |
LoginUser |
user login on the SMTP server |
LoginPassword |
password to log on the SMTP server |
port |
the server port to connect to (eg. 587, 2525, ...) |
Email related commands and functions
Sub Main()
DBWinit(TRUE)
SendTo="John Doe <[email protected]>; Bob Marley <[email protected]>; Paul Freeman <[email protected]>"
Subject="my test e-mail"
MailBody="this is a test message<BR>this is a <FONT COLOR=red>red message"
SendFrom="Hugo Stiglitz <[email protected]>"
DisplayMsg=TRUE
HTML=TRUE
AttachmentPath= "c:\temp\test_file.zip"
SMTPServer="my.TLSserver.com"
LoginUser="[email protected]"
LoginPassword="xxxyyyzzz"
port = "587"
DBWSendEMailTLS SendTo, Subject, MailBody, HTML, SendFrom, DisplayMsg, AttachmentPath, SMTPServer, LoginUser, LoginPassword, port
End Sub