Back to product page

FromName Property


Returns Name of the sender, if found.

Type

String

Syntax

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

Remarks

FromName property will read sender of the message (through From property), and try to return only name, without email address. Typically, full sender header may look like this:
"Technical Support" techsupport@weonlydo.com

in which case FromName would return "Technical Support", without any quotes.

To retrieve email address, you can use FromEmail property.

Platforms

Windows