SetFrom
Specify the email address of the sender.
SetFrom (Sender)
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
| Sender | string | In | Email address of sender; maximum of 1024 bytes |
Return Values
| Value | Description |
|---|---|
| 0 | Operation succeeded. |
| -18 | Memory allocation error. |
| <0 | An error occurred |
Description
variables
handle mailApiHandle
endvariables
; create the instance handle
newinstance "UPOPMAIL", mailApiHandle
<snip>log on to server </snip>
mailApiHandle->SetFrom(FROM.MESSAGE.NM)
variables
handle mailApiHandle
endvariables
; create the instance handle
newinstance "UPOPMAIL", mailApiHandle
<snip>complete message header and content, send mail, then log off mail server </snip>