.NET Framework Class Library
PDMSystem.EmitEMail Method
|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > .NET API > MwPDMApi Namespace > PDMSystem Class > PDMSystem Methods > .NET Framework Class Library |
Send an e-mail to the specified address with specification of the body format, SMTP server, login and password.
Namespace: MwPDMApi
Assembly: MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Visual Basic |
|---|
Public Sub EmitEMail ( _ sendTo As String, _ |
C# |
|---|
public void EmitEMail( string sendTo, |
Visual C++ |
|---|
public: void EmitEMail( |
JavaScript |
|---|
function emitEMail(sendTo, subject, body, isHTML, sendFrom, displayMsg, attachmentPath, serverSMTP, user, pwd, port); |
Parameters
sendTo
Type: System.String
receiver
subject
Type: System.String
e-mail subject
body
Type: System.String
body of the e-mail message
isHTML
Type: System.Boolean
TRUE: HTML text format, FALSE: simple text format
sendFrom
Type: System.String
sender
displayMsg
Type: System.Boolean
TRUE it displays the e-mail and let the user choose to send, FALSE it sends the e-mail without displaying any window
attachmentPath
Type: System.String
path of document to attach to the e-mail, empty string "" if no file to attach
serverSMTP
Type: System.String
outgoing mail server
user
Type: System.String
user login on the SMTP server
pwd
Type: System.String
password to log on the SMTP server
port (Optional)
Type: System.Int32
Optional. If different from 0, TLS is enabled and the specified port is used.
Remarks
See Also