KarlDec
  • KarlDec
  • 53% (Neutral)
  • Newbie Topic Starter
2 years ago
Hi,

I use code to send mail using my office365 mailbox. This is working fine. But i am not able to change the sender NAME .
Is this not possible, or ... ?
Dim Mail As SmtpMail = New SmtpMail(".....")
Mail.From.Address = "mail@address.com
Mail.From.name = "Name of the sender"
ivan
  • ivan
  • 100% (Exalted)
  • Administration
2 years ago

Hi,

I use code to send mail using my office365 mailbox. This is working fine. But i am not able to change the sender NAME .
Is this not possible, or ... ?
Dim Mail As SmtpMail = New SmtpMail(".....")
Mail.From.Address = "mail@address.com
Mail.From.name = "Name of the sender"

Originally Posted by: KarlDec 



Mail.From.Name is the right way, however, the Office 365 will change the name back to the display name in active directory, there is no way to change this behavior.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.