Cannot get IIS pickup directory... No idea

  • Thread starter Thread starter AndyNY
  • Start date Start date
A

AndyNY

We are using asp.net 2.0 to send email to the pickup folder

but are getting an error:

Cannot get IIS pickup directory

the code is rather simple we are testing with.

System.Net.Mail.MailMessage message = new
System.Net.Mail.MailMessage("(e-mail address removed)", "(e-mail address removed)",
"Testing " + DateTime.Now.ToString(), "Testing the Mail Drop Folder");
System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient();
client.DeliveryMethod =
System.Net.Mail.SmtpDeliveryMethod.PickupDirectoryFromIis;
client.Send(message);

Example at: www.andrewworral.com


but it breaks on our production server. It works locally and I have no
idea why it can't "get" the directory. I have tried also setting the
folder path, but get the same error.

Thanks!

-Andy
 
Sorry about that,

using Google Groups for submission and I thought it was freezing up...
apparantly it just decided to send numerous times instead.

-andy
 
Back
Top