Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pushpendra Singh 61 posts 116 karma points
    May 17, 2014 @ 13:17
    Pushpendra Singh
    0

    Cannot get IIS pickup directory C# (Asp.net)

    Hi,

    Reason because of might be the permission so please specify below path for pickup directory:

    C:\inetpub\mailroot\Pickup

    Code for PickupDirectoryFromIis:

    Asp.net code :

      var msgMail = new MailMessage(from mail, tomail, subject, body);

                    msgMail.IsBodyHtml = false;

                    var server = new SmtpClient("localhost");

                    server.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory;

                    senderMail.PickupDirectoryLocation = @"C:\inetpub\mailroot\Pickup";               

                    server.UseDefaultCredentials = false;

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies