Problem:
Needed to set up a webform to post email to a directory vice sending the email.
It is pretty straightforward.
Solution:
var smtpClient = new SmtpClient();
//Specify the delivery method as pickup
smtpClient.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory;
//Specify folder for the pickup.
smtpClient.PickupDirectoryLocation = pickupFolder;
Source:
No comments:
Post a Comment