Can I send emails without authenticating on the SMTP server?

前端 未结 2 2049
悲哀的现实
悲哀的现实 2021-01-06 09:09

i am creating simple email sending application. In my application when ever i send email i have to put my email address or password as from but i don\'t want to use password

2条回答
  •  甜味超标
    2021-01-06 09:45

    Can i send Email without using password using c#/.net application ?

    Yes, if you have access to an email gateway that doesn't require authentication you can simply do:

    SmtpClient mailClient = new SmtpClient("your.emailgateway.com");
    mailClient.Send(message);
    

    Maybe your company or ISP can provide one for you?

提交回复
热议问题