SendMail Method

This method is implemented by the following interfaces. Click one of the links below to jump to the description of the method as it pertains to that interface.

IERUFacility
IERUMailMessage

 

 

SendMail method

Uses the eRoom Server to send an email message.

Syntax


C++

HRESULT SendMail(
   BSTR To,
   BSTR Cc,
   BSTR Subject,
   BSTR Body)

Scripting languages

Object.SendMail(
   To as String,
   Cc as String,
   Subject as String,
   Body as String)

Parameters


To

A string containing the list of email addresses, separated by commas.

Cc

A string containing the list of email addresses, separated by commas.

Subject

The subject of the mail message.

Body

The body of the mail message.

Return value


C++

The return code.

Scripting languages

None.

Remarks


If the logged-in user is the server administrator, the "From" field of the email will be "eRoom". Otherwise, the "From" field in the email is taken from the logged-in users' email address.

If the logged-in user has no email address specified, the error EROOM_E_NOUSER is returned.


Go to Top

Home

Applies to

IERUFacility

 

 

SendMail method

Uses the eRoom Server to send an email message.

Syntax


C++

HRESULT SendMail(
   BSTR To,
   BSTR Cc,
   BSTR Bcc,
   BSTR From
   BSTR Subject,
   BSTR Body,
   ERUTextFormat BodyFormat,)

Scripting languages

Object.SendMail(
   To as String,
   Cc as String,
   Bcc as String,
   From as String,
   Subject as String,
   Body as String,
   BodyFormat as ERUTextFormat)

Parameters


To

A string containing a list of To email addresses, separated by commas.

Cc

A string containing a list of CC email addresses, separated by commas.

Bcc

A string containing a list of BCC email addresses, separated by commas.

From

Return email address for the mail.

Subject

The subject of the mail message.

Body

The body of the mail message.

BodyFormat

Indicates whether the Body parameter is formatted as HTML or as plain text.

For further information, see ERUTextFormat.

Return value


C++

The return code.

Scripting languages

None.

Remarks


If the logged-in user is the server administrator, the "From" field of the email will be "eRoom". Otherwise, the "From" field in the email is taken from the logged-in user's email address.

If the logged-in user has no email address specified, the error EROOM_E_NOUSER is returned.
 

Go to Top

Home

Applies to

IERUMailMessage