简体   繁体   中英

Send email using outlook error

I am trying to send email using the outlook in my c# app, works fine but i am getting this annoying popup message all the time saying,

"A program trying to send an e-mail message on your behalf"

How can I remove this message ?

Yes, this can be configured in the trust centre for your version of Outlook - you'll want to allow programmatic access.

There is the (big) caveat with this that it would allow malicious software on your PC to send email as you, and there have been worms that have used this as a propagation method in the past.

do you have to use Outlook API to do this - you can use System.Net.Mail SmtpClient instead which will not give you this message

sending mail as smtp client

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM