weinreich
  •  weinreich
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
2009-01-15T01:10:47Z
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:

<!--
SMTP setup for sending of e-mails from your forum.
-->
<smtp from="forumadmin@yep-online.com" deliveryMethod="Network">
<!-- Uncomment to specify SMTP settings -->
<!-- network host="xxx" port="25" password="xxx" userName="xxx" / -->
</smtp>

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:

<!--
SMTP setup for sending of e-mails from your forum.
-->
<smtp from="forumadmin@yep-online.com" deliveryMethod="Network">
<!-- Uncomment to specify SMTP settings -->
network host="xxx" port="25" password="xxx" userName="xxx" /
</smtp>

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:
<smtp from="forumadmin@yep-online.com" deliveryMethod="Network">
network host="localhost" port="25" password="" userName=""
</smtp>

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
2009-01-15T02:00:12Z
missing < >
<network host="xxx" port="25" password="xxx" userName="xxx" />


test
weinreich
  •  weinreich
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
2009-01-15T02:13:09Z
Thank you so much... this really bugged me 🙂
guest
2011-09-02T09:00:46Z
Originally Posted by: logan 

missing < >
<network host="xxx" port="25" password="xxx" userName="xxx" />




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

Fuck you r6GC
Chetan Bavarva
2016-11-23T06:37:41Z
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

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

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved