How to send email from html web page?

Discussion in 'Email' started by dyepez, Jul 2, 2008.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. In my website I want to replace simple email link like <a
    href='mailto:...'> with link to my own web page from where visitor can
    send me email. Reason that 'mailto' link opens usually Outlook which in
    many cases is not set up yet. So people got confused and emails are not
    sent.
    Can anyone tell me what should I do or use in order to implement such
    page?

    A lot of appreciations to any response.

    <form action='http://www.bluehost.com/bluemail'
    enctype='multipart/form-data' method='POST'>
    Name: <input type='text' name='Name'>

    Email: <input type='text' name='mailfrom'>

    Street Address: <input type='text' name='StreetAddress'>

    City: <input type='text' name='City'>

    Zip: <input type='text' name='Zip'>

    Phone: <input type='text' name='Phone'>

    <input type='hidden' name='sendtoemail' value='user@your domain.com'>

    <input type='submit' value='Send Email'>
    </form>

    The lines that I have to change is http://www.bluehost.com/bluemail and the value, that is because those lines are from another hosting company.
     
  2. If you find a way for your form to post emails would you let me know?


    Mark's solution is probably good for most programmers. I'm new at this asp thing and not a pro and frankly, that code caused so many errors in my vb web developer that I thought the error page was actually going to come through the screen and smack me.


    I need something simple, like it was for years:


    <FORM METHOD="POST" ACTION="MAILTO:[email protected]" " ENCTYPE="text/plain">
     
  3. There are Contact pages on customer sites here I've done with ASP and ASP.NET, both are good for this.
    If you get in a pinch I'll set one up for you on your site.
    There's much more you can do actually, DASP provides many components for both ASP and ASP.NET
    PHP can be used too but I do not mess with PHP. [​IMG]
    Salute,
    Mark
     
  4. Thank you Mark. The problem I have is that I'm not a programmer. I'm just a guy who is putting his family geneology website out there.


    Don'tneed anything fancy, just need it to send the forms asemails to me.
    Judging from the look of your code, I'm guessing that you are much more savvy than me in this programming. For me to use your code, well, it's kind of like the inventor of the wheel trying to build a spaceship. It's a few steps away yet for me, I'm afraid.

    I will look at some other sites and see if I can glean any helpful info for sending form information by email.

    Thank you again,
    John
     

  5. Hi John,


    Please remark that hackers can send spam from your web page. The best solution for your task is topay a proffesional programmer.


    Alexei Cioina.


    http://californiadreamhomesandland.com
     
  6. Hey guys,
    I'm a Technical Evangelist for DASP. [​IMG]
    This is something I do for DASP accounts free of charge.
    If you want an ASP or ASP.NET Contact Page and can not figure it out just ask.
    Salute,
    Mark Wisecarver


     
  7. Got it. Done. Houston we have lift-off!

    I hope I didn't offend. Studying your code was a good saturday afternoon challenge.

    Thank you,

    John
     
  8. Good job [​IMG]
     
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