Skip to content

From

Gets or sets the message sender.

Type

( string | MessageContact ) (MessageContact)

Declaration

1
 ( string | MessageContact ) myMessage.From

Remarks

If not set, the default sender is used.

When setting this property, an email address string is expected.

Examples

Set the sender address

1
2
3
4
var msg = $Messages.New();
msg.From = '[email protected]';
// or with a display name
msg.From = 'Jane Doe <[email protected]>';

See Also