DNN 5.6.8
IIS 7
Asp.NET Identity: NT AUTHORITY\NETWORK SERVICE
OS: Windows Server 2008 SP2
.NET Framework: 3.5
Web Hosting: Webhost4life.com
=======================
No matter what configuration I use (localhost, smtp.gmail.com, anonymous, basic authentication) email sent from any module results in the following error:
InnerException: Failure sending mail.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.IO.__Error.WinIOError
StackTrace:
Message: System.Net.Mail.SmtpException: Failure sending mail. ---> System.UnauthorizedAccessException: Access to the path 'C:\inetpub\mailroot\Pickup\97a7067e-2305-4c13-8c49-4a63497b86d4.eml' is denied.at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)at System.IO.FileStream..ctor(String path, FileMode mode)at System.Net.Mail.SmtpClient.GetFileMailWriter(String pickupDirectory)at System.Net.Mail.SmtpClient.Send(MailMessage message)--- End of inner exception stack trace ---at System.Net.Mail.SmtpClient.Send(MailMessage message)at DotNetNuke.Services.Mail.Mail.SendMail(String MailFrom, String MailTo, String Cc, String Bcc, String ReplyTo, MailPriority Priority, String Subject, MailFormat BodyFormat, Encoding BodyEncoding, String Body, List`1 Attachments, String SMTPServer, String SMTPAuthentication, String SMTPUsername, String SMTPPassword, Boolean SMTPEnableSSL)
I have attempted to replicate this in my local lab and cannot unless I force the pickup directory to be something else and then deny the app pool identity permission to it. There is something about Webhost4life.com's SMTP configuration that is not permitting emails to be sent from System.Net.Mail using Pickup directory. I have suggested Webhost4life support check to ensure Network Service has access permissions to SMTP. Most of what I have researched also suggests granting Network Service modify rights to the pickup directory, but my local configuration does not and it works fine. A simple CDO ASP script using sendusingPort works fine, but it appears that DNN is using the pickup directory option which the Webhost4lfe SMTP configuration is not supporting..
Can anyone suggest something else that I can have support check or have a solution to this?
Thanks!