Cannot get IIS pickup directory... No idea

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
 
A

AndyNY

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top