Contact Me page for Jeremy Wadsworth Starter Kit

Discussion in 'ASP.NET / ASP.NET Core' started by raymondp, Dec 5, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Can you try bypassing the form and hard coding in the email address's? We want to make sure that the form is passing the email address correctly.

    rcp
    DiscountASP.NET
    www.DiscountASP.NET
     
  2. can you give me a little guidance on how to do that?
     
  3. RCP,

    I dropped your code into a blank .aspx file and built it and got an error code. I've attached the screen shot of it.

    Thanks
     

    Attached Files:

  4. Its kind of hard to actually give you programming advise since I really don't know how your application is setup other then the code you've provided. I suggest using this kb article and setup a simple application that sends out email. If it sends out then it shows that the server is working correctly. http://kb.discountasp.net/article.aspx?id=10443

    Once we have determined that, go to your web application and in the To field instead of it waiting for the form to pass it a value, simply type in the email address directly and see if it sends out. Also make sure that the 'From' address is valid. This is important because if you ever get a bounce message it should go to the 'From' address. This will also help you identify if the email address is wrong or if something is misconfigured on your coding.

    rcp
    DiscountASP.NET
    www.DiscountASP.NET
     
  5. You're catching up so you may be able to do a little trick. [​IMG]
    Create a folder for the Contact code and use the readme information to create a web.config in that folder.
    Make sure the web.config is well formed or it will fail. (XML standards apply.)

    You can always have special web.config files in folders and over-write values or inheritance from the root web.config.
    If you need help let me know.
    Salute,
    Mark
     
  6. Yes I figured that out right after I replied. I need to learn to not be so quick on the reply.


    Anyway, I was able to sendand receive email by building a tempmail.aspx file with the VB code that RCP supplied and uploading it to my DASP server. When I went to that page I got the "Mail Sent" notification and about 15 seconds later there is my email.


    So that is working. What still is not working is my ContactUs.aspx file.I've attached a zip file of my ContactUs.aspx and ContactUs.aspx.vbto see if anyone see's something obvious I'm missing. To remind you, this is the default code for the starter kit that Jeremy Wadsworth extended.


    These forums are a huge help. Thanks again to everyone.


    Tony
     

    Attached Files:

  7. Notice the bottom section of the root web.config in that SK.
    He's keeping the contact info in those sections.
    If you want me to take another shot at it I will, no problem.
    Salute,
    Mark
     
  8. I've looked around at the numerous postings on mail settings but none of them work for me. There is a "Contact Us" page on JW's starter kit. I can't remember if there is one on the standard personal kit. Has anyone been able to get it to work for them? This is what I have for my mail settings in my web.config:



    <mailSettings>


    <smtp from="[email protected]" >


    <network defaultCredentials="true" host="localhost" userName="" password="" />


    </smtp>


    </mailSettings>


    I fill out the form, put in my email address,and never get an email after clicking submit.


    Thanks for your help.
     
  9. I realized my last post made it sound like I fixed the problem whichI havent. Anyone have any ideas? I attached the code for those pages.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page