asp.net - Cannot get IIS pickup directory -


I am using SMTP server 127.0.0.1. I get the error:

System.Net.Mail.SmtpException: Can not get from the IIS pickup directory. System.Net.Mail.IisPickupDirectory.GetPickupDirectory ().

This error occurred when send an email from ASP web page but ASP Send email from the net page, the error has not happened. Plz help

Unfortunately, this exception is raised when any type problem One common reason IIS / SMTP is trying to determine the location of the pickup directory is the IIS SMTP service is missing.

If you are sending mail using System.Net.Mail.SmtpClient, then try setting up the pickup directory manually:

  // # Var Client = New SmtpClient (); Customer Delivery mode = SmtpDeliveryMethod.SpecifiedPickupDirectory; Client.PickupDirectoryLocation = ...; Client.Send (...);  

Or instead of ASP.Net Web Set it to:

  & lt; Configuration & gt; & Lt; System.net & gt; & Lt; MailSettings & gt; & Lt; Smtp delivery method = "specified pickup directory" & gt; & Lt; Specified Pickup Directory Pickup Directory Location = "..." /> & Lt; Network default credential = "incorrect" /> & Lt; / Smtp & gt; & Lt; / MailSettings & gt; & Lt; /system.net> & Lt; / Configuration & gt;  

Alternatively, use the SMtpDeliveryMethod.Network method instead and use the host and port properties Your SMTP server has been sent.

More info:


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -