Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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;
is working on a reply...
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.
Continue discussion
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;
is working on a reply...
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.