YAFLogo

weinreich
  • weinreich
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
14 years ago
I am having a problem with setting up my stmp in the mail.config (I am using 1.9.3 RC2)

At the moment it looks like this:







This ofcourse is not working and in the log I get the following error:

System.InvalidOperationException: The SMTP host was not specified.
at YAF.Classes.Utils.SendMailThread.SendMailThreaded(Int32 uniqueId)

No big surprise.

But then I try to change the mail config to something like this:




network host="xxx" port="25" password="xxx" userName="xxx" /


And then I get this error:

System.Configuration.ConfigurationErrorsException: The configuration section cannot contain a CDATA or text element. (C:\websites\yep-online\yaf\YetAnotherForum.NET\mail.config line 5)
at YAF.Classes.Utils.SendMailThread.SendMailThreaded(Int32 uniqueId)

I would prefer to just use localhost and have there fore also tried cutting it all way down.
Complete mail.config:

network host="localhost" port="25" password="" userName=""


but I still get the same error.

I have no clue as to how to set this up, can some one help me?

PS. I have tried to search this forum a lot for an answer with no luck :(
Sponsor

logan
  • logan
  • 100% (Exalted)
  • YAF Leader
14 years ago
missing < >



test
weinreich
  • weinreich
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
14 years ago
Thank you so much... this really bugged me 🙂
guest
11 years ago
Originally Posted by: logan 

missing < >





Thank you very much, I'd been wacking my head with this. for almost a day.

Fuck you r6GC
Chetan Bavarva
6 years ago
You need to change in web.config


<system.net>
    <mailSettings>
      <smtp>
        <network host="hostName" port="port" enableSsl="true|false" password="your real password" userName="your real userName" />       
      </smtp>
    </mailSettings>
</system.net>

Chetan Patel
Custom software company India 
iFour Technolab Pvt. Ltd
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button