This property specifies the display name of email sender.
This property is not required to send email. Use this property only if you want your email address to be displayed with a name instead of an email address. Default value is sender's email address.
Usage Example:
[Visual Basic]
Private Sub SendEmail()
Dim oSmtp As AOSMTPLib.Mail
Set oSmtp = New AOSMTPLib.Mail
oSmtp.ServerAddr = "mail.adminsystem.net"
oSmtp.From = "Test User"
oSmtp.FromAddr = "test@adminsystem.net"
oSmtp.AddRecipient "Support Team", "support@adminsystem.net", 0
oSmtp.Subject = "Test"
oSmtp.BodyText = "Hello, this is a test...."
If oSmtp.SendMail() = 0 Then
MsgBox "Message delivered!"
Else
MsgBox oSmtp.GetLastErrDescription()
End If
End Sub
See Also
2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.