give a try at following:
YourMailVar.Sender = new MailAddress("Firstname.Lastname@dyckerhoff.com","Lastname Firstname")
As the DataType of Sender Property is of MailAdress we cannot assign a string due different datatype
give a try at following:
YourMailVar.Sender = new MailAddress("Firstname.Lastname@dyckerhoff.com","Lastname Firstname")
As the DataType of Sender Property is of MailAdress we cannot assign a string due different datatype