DBWSendEMail

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > PDMSystem >

DBWSendEMail

Description

Send an e-mail to the specified address.  

Syntax

Sub DBWSendEMail(SendTo, Subject, MailBody, DisplayMsg, AttachmentPath)

Parameters

SendTo

receiver

Subject

e-mail subject

MailBody

body of the e-mail message

DisplayMsg

Boolean.
If set to TRUE it displays the e-mail and let the user choose to send.
If set to FALSE it sends the e-mail without displaying any window.

AttachmentPath

path of document to attach to the e-mail.
Entry an empty string "" if you have no file to attach.

 

See also

Email related commands and functions

 

Example

Sub Main()
 sendto = "[email protected]"
 subject="try to send"
 body = "hello world!" & vbcrlf & "how is it going?"
 attach = "c:\foo.txt"
 DBWSendEmail sendto,subject,body,FALSE,attach
end sub