Try add this before mail.Send
mail.SentOnBehalfOfName = "example@email.com"; %change to the email you want send from
Try add this before mail.Send
mail.SentOnBehalfOfName = "example@email.com"; %change to the email you want send from
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!