9.134 MAIL_ADD_ORIGINATOR

Note: Built-In Function Rules     Usage Options

This Email Handling Built-In Function is used to add the name of the original sender for the current email.

This call will allow you to specify the original sender for the message.

Arguments

No

Type

Req/ Opt

Description

Min Len

Max Len

Min Dec

Max Dec

1

A

Req

Display name of the message sender.

1

255

 

 

2

A

Opt

Sender's address. This address is provider-specific message delivery data. For outbound messages, this argument may be an address entered by the user for a sender that is not in an address book (that is, a custom sender). Default behavior is mail system specific.

1

255

 

 

 

Return Values

No

Type

Req/ Opt

Description

Min Len

Max Len

Min Dec

Max Dec

1

A

Opt

Return Code

OK - Action completed

ER - Error occurred

2

2

 

 

 

Technical Notes

Example

This example shows only this function. See the example for MAIL_START which defines all details of an Email message and then sends it by using Built-In Functions.

Note: If you wish to use this example for testing you will need to insert a valid recipient's address in the required argument.

********** COMMENT(Define Message Originator if IBM i)

********** COMMENT(MAPI on non-IBM i usually defaults)

IF COND(*HOST)

USE BUILTIN(MAIL_ADD_ORIGINATOR) WITH_ARGS('SMTP:<-- recipient@address -->') TO_GET(#LEM_RETC)

ENDIF