PDA

View Full Version : What are email setting in web.config for CSK 2.0?


Tonyg
06-25-2007, 02:35 AM
Hello.

I have the Club Starter Kit 2.0 running on discountASP.NET. I tried other isp's, but DASP was the only isp that i had zero problems withwhen installing the CSK.

I tested sending email from the website and get an error which is at the end of this post. I think it's because the email settings are not correct in the web.config. I need to know whatto put in these sections:
<appSettings>
<add key="ClubName" value="The Girgenti Web Site" />
<add key="ClubSlogan" value="The Web Site of the Girgenti Family From Camden, NJ" />
<add key="ClubAddress" value="606 Lakeside Park, Southampton, PA 18966-4000" />
<add key="ClubCopyright" value="Copyright 2007 The Girgenti Web Site. All Rights Reserved." />
<add key="ClubURL" value="http://www.girgenti.info/" />
<add key="ClubMailServer" value="mail.club.com" />
<add key="ClubMailUsername" value="admin@club.com" />
<add key="ClubMailPassword" value="password" />
<add key="ReportContentUpdate" value="false" />
<add key="WebMaster" value="webmaster@clubsite.com" />
<add key="FCKeditor:UserFilesPath" value="~/Files/"/>
<add key="FCKeditor:BasePath" value="~/FCKeditor/editor"/>
</appSettings>

<system.net>
<mailSettings>
<smtp from="club@club.com">
<network host="localhost" port="25" password="clubpassword" userName="club@club.com" />
</smtp>
</mailSettings>
</system.net>


Do i need to sign up for an email account on DASP?

Any help would be gratefully appreciated.

Thanks,
Tony

Server Error in '/GirgentiWebSite' Application.
--------------------------------------------------------------------------------
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Source Error:

Line 76: smtp.UseDefaultCredentials = False
Line 77: smtp.Credentials = a
Line 78: smtp.Send(msgMail)
Line 79: Response.Redirect("~/default.aspx")
Line 80: End Sub

Source File: C:\Documents and Settings\Administrator.TONYDELL\My Documents\Visual Studio 2005\WebSites\GirgentiWebSite\Admin\Email.aspx.vb Line: 78

vvsharma
06-25-2007, 03:59 AM
You may not have the Smtp service running locally on your machine or the machine where the project resides.As far as DASP servers are concerned,your web.config mail settings look fine,except you dont need to specify the credentials (password='clubpassword' userName='club@club.com') .

Vikram

DiscountASP.NET
www.DiscountASP.NET (http://www.discountasp.net/)

Tonyg
06-25-2007, 04:19 AM
Hello Vikram.


I'm not sure i understand what you are telling me.


How do i check if the SMTP server is running?
Also, should i remove (password="clubpassword" userName="club@club.com") ? Or will it hurt to just leave it?

Additionally, what do i use for all of the other "clubmail" settings?

Thanks,
Tony

Joseph Jun
06-26-2007, 10:14 AM
Tony,

In your Email.aspx.vb file, could you please make sure that it's using the value that you added in the <mailSettings> tag and not referencing any of the following <appSetting> values:

<add key='ClubMailServer' value='mail.club.com' />
<add key='ClubMailUsername' value='admin@club.com' />
<add key='ClubMailPassword' value='password' />
<add key='ReportContentUpdate' value='false' />

The error message that you're receiving is probably because it is trying to use the key values from your application settings.

If you're unsure, post some code from the Email.aspx.vb file for us to take a look at as well.

Winston

DiscountASP.NET
www.DiscountASP.NET