Thread: E-mail Problem

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Canada
    Posts
    40
    Rep Power
    12

    E-mail Problem


    I have an odd problem. Someone developed a webpage with FrontPage. The form sends an e-mail using Outlook when it is submitted. Have to change the form so that it sends an e-mail directly, without going through Outlook.

    I have taken the old code and for the life of me, I cannot find the function that e-mails the information! How can I change it so that the program e-mails through the browser instead?
  2. #2
  3. Moderator Emeritus
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Location
    Austin, TX
    Posts
    7,188
    Rep Power
    2265
    Can you post the code for the form?

    Really, though, changing the action to the email address *should* do it...
    DrGroove, Devshed Moderator | New to Devshed? Read the User Guide | Connect with me on LinkedIn
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Canada
    Posts
    40
    Rep Power
    12

    Code


    What exactly do you mean change the action? Here is the code. I took a lot out.

    -- [BEGIN Custom1] -->

    <!-- [END Custom1] -->
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <!-- [BEGIN Custom2] -->

    <!-- [END Custom2] -->
    <HEAD>
    <TITLE>
    Contact
    </TITLE>
    <!-- [BEGIN Layout script] -->
    <!-- DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" saved from url=(0043)http://www.***.htm -->
    <META CONTENT="***" NAME="author">
    <META CONTENT="***" NAME="keywords">
    <META CONTENT="***" NAME="description">
    <META CONTENT="MSHTML 6.00.2800.1226" NAME="GENERATOR">
    <!-- [END Layout script] -->
    <SCRIPT>
    <!--
    var F_A,F_B,F_CH,F_CL,F_DB,F_E,F_F,F_L,F_MT,F_MV,F_R,F_SE,F_SU,F_U,F_HR,F_MU,F_MD;
    function F_e(){} function F_n(){} function F_onLoaded(){}
    //-->
    </SCRIPT>
    <SCRIPT>
    <!--
    function F_doLoaded() {
    document.main = new F_cMain();
    document.objectModel = new Object();
    F_OM('Layout','LayoutLYR', 'doc', '', new Array());
    F_OM('FormsButton59' , '', 'btn', 'Layout',new Array(
    'Clicked',F_functFormsButton59Action0,'','',0),'Text22FORM',0,'FormsButton1');
    F_pageLoaded('Layout');
    }
    function F_functFormsButton59Action0(params) {
    window.location.href = 'thanks.html';
    }
    //-->
    </SCRIPT>
    <NOLAYER>
    <STYLE ID="NOF_STYLE_SHEET">
    </STYLE>

    </NOLAYER>
    </HEAD>
    <BODY NOF="(MB=(, 0, 0, 0, 0), L=(, 667, 1791))" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0033CC" VLINK="#990099" ALINK="#FF0000" onLoad="F_onLoaded();">
    <DIV ID="LayoutLYR">
    <LAYER ID="LayoutLYR" TOP=0 LEFT=0 VISIBILITY=INHERIT WIDTH="100%" HEIGHT="100%" Z-INDEX=1>
    <TABLE CELLPADDING=0 CELLSPACING=0 WIDTH="100%" HEIGHT="100%" VALIGN=TOP>
    <TR>
    <TD VALIGN=TOP>
    <!-- [BEGIN Text1] -->

    <!-- [END PRE-Text1] -->
    <P ALIGN=CENTER>
    <FONT FACE="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
    </FONT>
    <TABLE WIDTH="100%" BORDER=0 CELLSPACING=0 CELLPADDING=0 NOF=TE>
    <TR>
    <TD ALIGN="CENTER">
    <!-- [BEGIN Table1] -->
    <SCRIPT LANGUAGE="JavaScript">

    <!-- hide from non JavaScript Browsers
    //buttons go here

    // stop hiding -->

    </SCRIPT>

    <!-- [END PRE-Table1] -->
    <TABLE ID="Table1" BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=667 NOFINSIDE="~! ~!" >
    <COLGROUP>
    <COL WIDTH=130>
    <COL WIDTH=537>
    </COLGROUP>
    <TR>
    <TD VALIGN=TOP WIDTH=130>
    <P>
    <FONT FACE="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
    <!-- [BEGIN Picture3] -->

    //Banner goes here
    <BR>
    </FONT>
    <!-- [BEGIN Table2] -->

    <!-- [END PRE-Table2] -->
    <TABLE ID="Table2" BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=537 NOFINSIDE="~! ~!" >
    <COLGROUP>
    <COL WIDTH=5>
    <COL WIDTH=532>
    </COLGROUP>
    <TR>
    <TD WIDTH=5>
    <P>
    <FONT FACE="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
    </FONT>
    </P>
    </TD>
    <TD VALIGN=TOP WIDTH=532>
    <FORM NAME="Text22FORM" ENCTYPE="text/plain" ACTION="mailto:kathy@aerialfarmphotos.com" METHOD=POST>
    <P ALIGN=RIGHT>
    <FONT FACE="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
    <BR>
    </FONT>
    <FONT COLOR="#FF0000" SIZE="-2" FACE="Arial,Helvetica,Geneva,Sans-serif,sans-serif">
    &gt;&gt;
    </FONT>
    <!-- [BEGIN Text22 Link] -->

    <!-- [END PRE-Text22 Link] -->
  6. #4
  7. Moderator Emeritus
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Location
    Austin, TX
    Posts
    7,188
    Rep Power
    2265
    Looks like the form action already is the email addy...
    <FORM NAME="Text22FORM" ENCTYPE="text/plain" ACTION="mailto:kathy@aerialfarmphotos.com" METHOD=POST>
    DrGroove, Devshed Moderator | New to Devshed? Read the User Guide | Connect with me on LinkedIn
  8. #5
  9. Moderator Emeritus
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Location
    Austin, TX
    Posts
    7,188
    Rep Power
    2265
    OK... it *looks* like you'll have to use some sort of server-side scripting language to send this via email w/o launching the user's email application.

    Do you have access to any server-side scripting on your server? Such as PHP, Perl, etc. ?
    DrGroove, Devshed Moderator | New to Devshed? Read the User Guide | Connect with me on LinkedIn
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Canada
    Posts
    40
    Rep Power
    12

    No Serverside Code


    I ftp'd onto the site and I only see an empty cgi--bin folder, html pages and jpegs.
  12. #7
  13. Moderator Emeritus
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Location
    Austin, TX
    Posts
    7,188
    Rep Power
    2265

    Re: No Serverside Code


    Originally posted by utmostrusselb
    I ftp'd onto the site and I only see an empty cgi--bin folder, html pages and jpegs.
    Well, CGI is one thing...

    You won't be able to tell what server-side scripting capabilities you have access to simply by looking at your server's directory structure.

    Are you hosting your website w/ a specific company? Or, is this your own server?

    If you're outsourcing this, the company hosting the site can tell you what languages you have access to.

    If you're running your own webserver, there are a number of languages you can install.
    DrGroove, Devshed Moderator | New to Devshed? Read the User Guide | Connect with me on LinkedIn
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Canada
    Posts
    40
    Rep Power
    12
    I was thrown this webpage. Now they want me to redesign the whole page. Any idea's on what the simplest way to e-mail from a form would be?
  16. #9
  17. Moderator Emeritus
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Location
    Austin, TX
    Posts
    7,188
    Rep Power
    2265
    Yes - the simplest way at this point is to use a server-side scripting language to send the contents of the submitted form to the email address.
    DrGroove, Devshed Moderator | New to Devshed? Read the User Guide | Connect with me on LinkedIn
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Canada
    Posts
    40
    Rep Power
    12
    Is there an easier way? I am in school doing this part-time and only learn that kind of thing later this semester. I don't know where to begin???
  20. #11
  21. Senior Polecat
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Location
    Jersey (the original version)
    Posts
    210
    Rep Power
    12

    At the beginning


    As Dr Groove said, first you have to find out what ServerSide languages are available to you.

    As you have a CGI bin odds are good you've got Perl.

    To find out if you've got PHP ask your hosting provider. Or upload a normal webpage with the file extension .php and see if you can view it.

    PHP is sooo much easier to configure to send mail than Perl. Once you've testd for these you need to find a script that sends mail. I found this one after about 30 seconds on HotScripts :

    http://www.hotscripts.com/Detailed/25280.html

    If you are really new to ServerSide scripting then your best bet is to look for some introductory tutorials. There are loads out there (the ones I taught myself from are at WebMonkey) Just take your time, read through the tutorials and before you know it, you'll be able to write your own scripts.

    Remember - we all had to start somewhere!

    Icy
    Quidquid latine dictum sit, altum viditur.

    http://www.XSet.co.uk

IMN logo majestic logo threadwatch logo seochat tools logo