AuthorizeEmailAttach method: MCFMailStore class
Syntax
AuthorizeEmailAttach(email ID, authentication name, authentication type, operation)
Description
Use AuthorizeEmailAttach to authorize a user or a PeopleSoft role to view attachments associated with an email. By default, no user or role is authorized to view an email; you must explicitly grant authorization with this method. This method authorizes email and the associated attachments one at a time.
Note:
If you specify ALL as the user, any user can view the attachments for an email.
Parameters
| Parameter | Description |
|---|---|
|
email ID |
The unique email ID for the email. This is the PeopleSoft email ID, not the ID issued by the mail server. |
|
authentication name |
The name of the PeopleSoft user profile or role that needs to be authorized to view the attachments. |
|
authentication type |
Specify the type security definition entered as the authentication name.
|
|
operation |
Specify the type of authorization operation. The following list contains the supported operations. You either add or delete user or role authorization.
|
Returns
Returns a Boolean value: True for success, False otherwise.
Example
&ms = create MCFMailStore();
&status = &ms.AuthorizeEmailAttach(&emailid, "MCFUser", 2, 1);