| Welcome back Guest | View New Posts |
Aug 17 2009, 08:00 AM
Post
#1
|
|
|
Newbie ![]() Group: LinkTogether Member Posts: 1 Joined: 17-August 09 Member No.: 360 |
On a "Contact Us" page I am trying to configure the proper SMTP settings for this (Network Solutions) environment so that a potential client can send a request for information and contact information by email. What I have in my web.config page is:
<system.net> <mailSettings> <smtp from="info@ramairss.com"> <network host="smtp.ramairss.com" port="25" /> </smtp> </mailSettings> </system.net> This is the settings I was told would work by NS Support staff. When I try to debug for these settings I get a generic error message "Can not send". I am used to being in control of all the server settings and new to working in a shared hosting environment. Settings seem light to me. Can anyone help a brother out here? Thanks! |
|
|
|
![]() |
Aug 17 2009, 02:36 PM
Post
#2
|
|
|
Advanced Member ![]() ![]() ![]() Group: Administrators Posts: 40 Joined: 22-November 08 Member No.: 3 |
Hi mounjer,
Here is an example of what I have used for my .net site - CODE <system.net> <mailSettings> <smtp> <network host="mail.domain.com" port="2525" userName="emailaddress@domain.com" password="yourpassword"/> </smtp> </mailSettings> </system.net> Hope that can help Joe |
|
|
|
Aug 20 2009, 02:38 PM
Post
#3
|
|
|
Newbie ![]() Group: LinkTogether Member Posts: 1 Joined: 20-August 09 Member No.: 363 |
On a "Contact Us" page I am trying to configure the proper SMTP settings for this (Network Solutions) environment so that a potential client can send a request for information and contact information by email. What I have in my web.config page is: <system.net> <mailSettings> <smtp from="info@ramairss.com"> <network host="smtp.ramairss.com" port="25" /> </smtp> </mailSettings> </system.net> This is the settings I was told would work by NS Support staff. When I try to debug for these settings I get a generic error message "Can not send". I am used to being in control of all the server settings and new to working in a shared hosting environment. Settings seem light to me. Can anyone help a brother out here? Thanks! I don't know if this will help you out but most of my websites are for non-profits and they have events for which they would like folks to sign up so they know they are coming. This seems not much different than soliciting contact information. I struggled with asp scripts and don't know the PHP and other scripting languages but I found two solutions, the second one may meet your needs, but first the 1st one just to mention it. 1. I could create a mail-to form in Dreamweaver that would actually email the form to a designated email address but left the person, after sending it, back at the form page looking at the completed form. No redirect. This worked but you have to explicitly that when they are back there, they should press their back button to return to a previous web page. 2. Better is the (free) Network Solutions hosted form. It emails the completed data but brings the user back to a page that can tell them they succeeded as well as a link to the web page of your choice. I wrote a document with screen shots on this and posted it on one of my websites. I couldn't figure out how to send it to Network Solutions Technical Support because I can't find an email to which to send it. If you'd like a copy of it in Word or Acrobat, go to: http://flybynightpublishing.com/technologytips.html and click on either of the links to the right of "Creating & Maintaining Excel Lists for Data & Mail Merges." Philip Siddons Philip@FlyByNightPublishing.com |
|
|
|
Aug 21 2009, 02:13 PM
Post
#4
|
|
|
Newbie ![]() Group: LinkTogether Member Posts: 1 Joined: 21-August 09 Member No.: 365 |
Hi mounjer, Here is an example of what I have used for my .net site - CODE <system.net> <mailSettings> <smtp> <network host="mail.domain.com" port="2525" userName="emailaddress@domain.com" password="yourpassword"/> </smtp> </mailSettings> </system.net> Hope that can help Joe This didn't work for me. When I tried using these exact settings (with my own domain name) for my ASP.NET application, I got an error telling me I had "insufficient permissions to set the 'port' configuration property." When I removed the "port=2525," then the error went away. Does setting the port actually work for you? If so, I wonder why it doesn't work for me. |
|
|
|
Aug 21 2009, 10:44 PM
Post
#5
|
|
|
Newbie ![]() Group: LinkTogether Member Posts: 1 Joined: 21-August 09 Member No.: 366 |
Here are the settings for my web.config file that the NS Support Staff recommended.
<system.net> <mailSettings> <smtp from="name@yourdomain"> <network host="localhost" /> </smtp> </mailSettings> </system.net> These settings works for me, though not all my email goes through. I'm able to send to a Yahoo email account and a NS email account, but for some reason my email account at Comcast and a gmail account never receive the emails. I've tried setting the port to 2525 as recommended, but when I do I receive the error message stating "insufficient permissions for setting the configuration property 'port'". I assume it is because they have the trust level set to medium. Hope this helps. |
|
|
|
Feb 19 2010, 05:13 PM
Post
#6
|
|
|
Newbie ![]() Group: LinkTogether Member Posts: 2 Joined: 17-February 10 Member No.: 576 |
I'm new to shared hosting at NetworkSolutions.
I have to say that I'm a little more than SHOCKED that NS doesn't have a clear, step-by-step guide to configuring your ASP.NET web page code for generating a typical "response email" from an ASPX page. All of my prior web site hosting has been at GoDaddy and then have two fairly clear Help files that come up when you query the Help system with the string "smtp" help 1 and help 2 . Here's what I use in VB for the invocation of Send of System.Net.Mail: CODE Dim objMail As New MailMessage objMail.IsBodyHtml = True With objMail .From = New MailAddress(noreply@mydomain.org) .To.Add(pEmailTo) .Subject = pSubject .Body = "email message string" End With Dim client As SmtpClient = New SmtpClient("relay-hosting.secureserver.net") client.UseDefaultCredentials = True Try If Session("SendEmail") = "Y" Then client.Send(objMail) End If Catch Ex As Exception Dim lvErr As String = Ex.Message CommonCode.RecordError(SqlDataSource1, "other error info", lvErr) lvReturn = False End Try objMail.Dispose() In doing basically the same thing in my NS web site, I get either "ERROR in MAIL SEND: Mailbox name not allowed. The server response was: sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)" or "ERROR in MAIL SEND: Mailbox unavailable. The server response was: Relaying not allowed" I have tried the two following items in the web.config "<system.net>" section: CODE <mailSettings> <smtp from="noreply@kauywca.org"> <network host="localhost" /> </smtp> </mailSettings> CODE <mailSettings> <smtp from="noreply@kauaiywca.org"> <network host="smtp.xyz.org" userName="noreply@xyz.org" password="xyz" /> </smtp> </mailSettings> Like an earlier contributor to this thread, when I attempted to use 'port="2525"' I got the "insufficient permissions for setting the configuration property 'port'." error. (Oddly, in one of the earllier setting of 'port="25"' that error didn't erupt, so I guess there's a difference between the specification "25" and "2525" in port land.) I've just removed the whole "mailsettings" it is not present in the GoDaddy implementation that works and still get the "Relaying not allowed." DOES ANYONE HAVE A RELIABLE ALWAYS-WORKING SOLUTION? I am afraid that I must advise the client to move to another hosting service if there isn't a solution forthcoming from Network Solutions technical help. Like a lot of hosting service they try to "wave you off" when a matter gets near "scripting" (which is irksome since this is not a 'scripting' issue but a matter of having clear and available configuration HELP). Any hints, guidance, suggestions gratefully received. (IMG:http://forums.linktogether.com/style_emoticons/default/wink.gif) KevInKauai |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 8th September 2010 - 08:24 PM |