Framework EDI Reference. Methods and Properties
ediTransport. DisplayName

Sets or gets the display name of the primary recipient.

Syntax:

Remarks

This string property displays an alternate name of the recipient of the message sent using the SMTP transport method (email).  The display name is attributed only to the primary recipient, which is listed in the TO field of the message header.

Example

Set oTransport = oTransports.CreateTransport
oTransport.SetSMTP ' SMTP
oTransport.Address = "curly@stooges.com"
oTransport.DisplayName = "funnyperson"
oTransport.Message = "Please see EDI file"
oTransport.Subject = "EDI file"
oTransports.Send

Samples