|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > PDMSystem > DBWSendEMail2 |
Send an e-mail to the specified address; it lets you specify the body format, SMTP server, login and password
Sub DBWSendEMail2(SendTo, Subject, MailBody, HTML, SendFrom, DisplayMsg, AttachmentPath, SMTPServer, LoginUser, LoginPassword)
SendTo |
receiver |
|---|---|
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 |
LoginUser |
user login on the SMTP server |
LoginPassword |
password to log on the SMTP server |
Email related commands and functions
Sub Main()
DBWinit(TRUE)
SendTo="Luca Maselli <[email protected]>"
Subject="test e-mail"
MailBody="this is a test message<BR>this is a <FONT COLOR=red>red message"
SendFrom="Luca Maselli <[email protected]>"
DisplayMsg=TRUE
HTML=TRUE
AttachmentPath= "c:\temp\test_file.zip"
SMTPServer="my.smtp.server.com"
LoginUser="[email protected]"
LoginPassword="xxxyyyzzz"
DBWSendEMail2 SendTo, Subject, MailBody, HTML, SendFrom, DisplayMsg, AttachmentPath, SMTPServer, LoginUser, LoginPassword
End Sub