Back to product page

ToString Method


Returns string expression containing name and value of the header.

Type

String

Syntax

  • Basic
object.ToString()
The ToString(object) syntax has these parts:
objectAn expression evaluating to an object of type SmtpHdr

Remarks

ToString method will return string expression that is combined of header Name, semicolon and header Value, just as it appears in email body. For example, if header Name is 'From' and header value is 'techsupport@weonlydo.com' then ToString would return line like this: From: techsupport@weonlydo.com.

Notice that between Name and Value is one semicolon and one space character.

Platforms

Windows