We have collected information about Mailsettings Deliverymethod for you. Follow the links to find out details on Mailsettings Deliverymethod.
https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/network/mailsettings-element-network-settings
<mailSettings> Element (Network Settings) 03/30/2017; 2 minutes to read +8; In this article. Configures mail sending options. <configuration> <system.net> <mailSettings> Syntax
https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/network/smtp-element-network-settings
Attribute Description; specifiedPickupDirectory: Configures the local directory for a Simple Mail Transport Protocol (SMTP) server. network: Configures the network options for an external SMTP server.
https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/network/specifiedpickupdirectory-element-network-settings
Remarks. The specifiedPickupDirectory attribute sets the directory where applications save mail messages to be processed by the SMTP server.. Example. The following example specifies c:\maildrop as the mail pickup directory. <configuration> <system.net> <mailSettings> <smtp deliveryMethod="SpecifiedPickupDirectory"> <specifiedPickupDirectory …
https://docs.microsoft.com/en-us/dotnet/api/system.net.mail.smtpclient.deliverymethod
Remarks. Delivery methods include: An SMTP server. Moving the email into the pickup directory for IIS, which then delivers the message. Moving the email to a directory specified by PickupDirectoryLocation for later delivery by another application.. The default value for this property can also be set in a machine or application configuration file.
https://stackoverflow.com/questions/9884004/error-setting-smtp-deliverymethod
Given that you've already got PickupDirectoryFromIis hard-coded in your application, I suspect you can just remove it from your config file and all will be well. The rogue spaces pointed out by Diamondo25 are probably the root cause, but you should only configure it in one place for clarity anyway - so I'd remove this setting from web.config, but remove the space from "true " for the credentials.
https://www.limilabs.com/blog/read-system-net-mailsettings-smtp-settings-web-config
There is a standard way of specifying SMTP settings in .NET applications. .NET uses config files (app.config or web.config in case of ASP.NET) and element to specify the appropriate SMTP parameters to send e-mail.. Sample configuration (in this case Gmail SMTP settings) looks as follows:
https://mailsettings.net/
About MailSettings.net MailSettings.net aims to help you find out your e-mail server settings and configure your email client such as Outlook, Thunderbird, or your mobile device such as iPhone, iPad, Android, Blackberry and others, with easy to follow tutorials.
Searching for Mailsettings Deliverymethod?
You can just click the links above. The data is collected for you.