PHP email script

Discussion in 'Classic ASP' started by sensoui, Aug 24, 2003.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I dont know where to post this but I was advised to participate in this forum by tech support. Hope you guys could forgive me. I am still a newbie in the PHP arena. Could someone help me or just give me a link on how to program a PHP script that would automatically use the local smtp server (let's say in discountasp.net We have an account here) from a <FORM> submission.

    For example:
    <form action="http://mydomain.com/emailprocess.php" method="post" name="isn" ENCTYPE="multipart/form-data">
    <input name="CustName" type="text" />
    <input name="CustEmail" type="text" />
    </form>

    I need to process this form. Any help would be appreciated.
    Thanks! [8D]

    Gian U. Uy
    Cybersphere Systems Inc.
    http://www.c-sphere.com
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    THis is a test php script that sends email. It doesn't take any form variables though

    <?php
    $to = "[email protected]";
    $subject = "Test Mail from PHP";

    $out = str_pad("This is a test", 20);

    mail($to, $subject, $out);

    exit;

    ?>




    quote:Originally posted by sensoui

    I dont know where to post this but I was advised to participate in this forum by tech support. Hope you guys could forgive me. I am still a newbie in the PHP arena. Could someone help me or just give me a link on how to program a PHP script that would automatically use the local smtp server (let's say in discountasp.net We have an account here) from a <FORM> submission.

    For example:
    <form action="http://mydomain.com/emailprocess.php" method="post" name="isn" ENCTYPE="multipart/form-data">
    <input name="CustName" type="text" />
    <input name="CustEmail" type="text" />
    </form>

    I need to process this form. Any help would be appreciated.
    Thanks! [8D]

    Gian U. Uy
    Cybersphere Systems Inc.
    http://www.c-sphere.com
    </blockquote id="quote"></font id="quote">
     
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