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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...