Back to product page

ToEmail Property


Returns Email of the recipient, if found.

Type

String

Syntax

  • Basic
object.ToEmail [= value]
The ToEmail(object,value) syntax has these parts:
objectAn expression evaluating to an object of type SmtpMsg
valueA String value.

Remarks

ToEmail property will read sender of the message (through To property), and try to return only email address, without the name.

Typically, full recepient header may look like this: "Technical Support" techsupport@weonlydo.com in which case ToEmail would return 'techsupport@weonlydo.com', without any quotes.

To retrieve name, you can use ToName property.

Platforms

Windows