Back to product page

ToName Property


Returns Name of the recipient, if found.

Type

String

Syntax

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

Remarks

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

Typically, full recepient header may look like this: "Technical Support" techsupport@weonlydo.com in which case ToName would return 'Technical Support', without any quotes. To retrieve email address, you can use ToEmail property.

Platforms

Windows