dcsimg
Results 1 to 2 of 2

Thread: SmtpClient send with X509Certificate2

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2003
    Posts
    757

    Question SmtpClient send with X509Certificate2

    Hi,

    I am trying to send email with digitally signed using SMTPClient, but no luck

    Code:
    SmtpClient client = new SmtpClient(Email.server, Email.port);
    client.Timeout = Email.timeout;
    client.UseDefaultCredentials = Email.use_auth;
    client.Credentials = new NetworkCredential(Email.user_id, Email.user_passwd);
    client.EnableSsl = true;
    client.ClientCertificates.Add(new X509Certificate2(@"D:\Downloads\dev@mydomain.com.pfx", "xxx..xaa!xx"));
    it able to detect the password of the certificate, but the outgoing email does not have certified signed..

    any body please help?

    thanks
    Win

  2. #2
    Banned
    Join Date
    Dec 2019
    Posts
    9

    Re: SmtpClient send with X509Certificate2

    Don't really understand your question, sorry

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width