sending email from a web form without going to Email client

Posted on 2009-02-10
Last Modified: 2012-05-06
I am trying to set up a web form to collect customer inquiry from my website form. The web is hosted by Yahoo so now I use Yahoo form code. The code is an example from Yahoo

If I want to move my hosting from Yahoo to another company, what do I need to change for the code?


<form method=post action="">

<font face="arial, helvetica">

<b>Your first name:</b><br>

<input type="text" name="Name" size="27">


<b>Your URL:</b><br>

<input type="text" name="URL" size="27">


<b>How often do you visit my web site?</b><br>

<input type="radio" name="Visit" value="Daily">Every day<br>

<input type="radio" name="Visit" value="Weekly">Once per week<br>

<input type="radio" name="Visit" value="Monthly">Once per month<br>

<input type="radio" name="Visit" value="Yearly">Once per year<br>


<b>Please add any comments you have below:</b>


<textarea cols="40" rows="10" name="Comments"></textarea>


<input type="submit" value="Send">

<input type="reset" value="Clear the form">

<!-- Option 1 -->

<input type="hidden" name="subject" value="Survey Results">

<!-- Option 2 -->

<input type="hidden" name="required_fields" value="Name,URL">

<!-- Option 3

<input type="hidden" name="next_url" value="">



Open in new window

Question by:Brgzaq
    LVL 2

    Expert Comment

    Unfortunately I do not believe it will be possible to use the same code as this line indicates that it might use an included file.

    However you can very likely find an alternative and free script on a site such as that will give you the same results.
    <form method=post action="">

    Open in new window

    LVL 8

    Accepted Solution

    You will need to change only the post action ie . action action="">

    Here you are postind a URL variable and logging into yahoo mail.

    Since it is yahoo u r using yahoo mail server to send the mail.

    If you change your host u will have to use their domain

    Author Comment


    Can you give me an example of change for the post action if our web is hosted by


    Author Closing Comment

    No solved

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
    This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
    The viewer will learn how to count occurrences of each item in an array.
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now