.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
PDMSystem.EmitEMail Method

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, _
subject As String, _
body As String, _
isHTML As Boolean, _
sendFrom As String, _
displayMsg As Boolean, _
attachmentPath As String, _
serverSMTP As String, _
user As String, _
pwd As String, _
Optional port As Integer = 0 _
)

C#

public void EmitEMail(

string sendTo,
string subject,
string body,
bool isHTML,
string sendFrom,
bool displayMsg,
string attachmentPath,
string serverSMTP,
string user,
string pwd,
int port = 0
)

Visual C++

public:

void EmitEMail(
String^ sendTo,
String^ subject,
String^ body,
bool isHTML,
String^ sendFrom,
bool displayMsg,
String^ attachmentPath,
String^ serverSMTP,
String^ user,
String^ pwd,
int port = 0
)

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

PDMSystem Class

PDMSystem Members

MwPDMApi Namespace