Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Auto Mail.cgi

  • 28-09-2009 02:41PM
    #1
    Registered Users, Registered Users 2 Posts: 168 ✭✭


    I am not very tech

    I have a form on my website and I have been using an old Eircom auto mail.cgi on one of their /~ websites which I have been redirecting to my new website.

    This has stopped working

    I have contacted my hosting company but they cannot help me because I am on a Windows system, ok if it was Linux

    How can I direct the form to my e-mail using auto_mail.cgi

    Could I use g-mail, I still use Eircom webmail + an e-mail with my hosting company.

    Brendan


Comments

  • Registered Users, Registered Users 2 Posts: 168 ✭✭Brendan552004


    The following is the script that I have been using:

    <FORM ACTION = "http://homepage.eircom.net/cgi-bin/auto_mail.cgi&quot;
    METHOD = "post" style="font-size: 12pt" name="list1.html">
    <INPUT TYPE="hidden" NAME="TO" VALUE="mediapub@eircom.net">
    <INPUT TYPE="hidden" NAME="SUBJECT" VALUE="Irish Media Guide"><input type="hidden" name="RETURN" value="http://www.irishmediaguide.com/accept.html"&gt;
    <table border="0" cellpadding="10" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">


    My hosting company suggests I use:

    The following code sample demonstrates a simple email-sending form using ASPEmail Component available on our Windows Hosting accounts.

    Where do I input my email and the accept.html in this form

    problem is, this is the form I want to send:

    http://www.irishmediaguide.com/list1.html

    <%
    ' change to address of your domain
    strHost = "yourdomain.com"

    If Request("Send") <> "" Then
    Set Mail = Server.CreateObject("Persits.MailSender")
    ' enter valid SMTP host
    Mail.Host = strHost

    Mail.From = Request("From") ' From address
    Mail.FromName = Request("FromName") ' optional
    Mail.AddAddress Request("To")

    ' message subject
    Mail.Subject = Request("Subject")
    ' message body
    Mail.Body = Request("Body")
    strErr = ""
    bSuccess = False
    On Error Resume Next ' catch errors
    Mail.Send ' send message
    If Err <> 0 Then ' error occurred
    strErr = Err.Description
    else
    bSuccess = True
    End If
    End If
    %>

    <HTML>
    <BODY BGCOLOR="#FFFFFF">
    <% If strErr <> "" Then %>
    <h3>Error occurred: <% = strErr %>
    <% End If %>
    <% If bSuccess Then %>
    Success! Message sent to <% = Request("To") %>.
    <% End If %>
    <FORM METHOD="POST" ACTION="Simple.asp">
    <TABLE CELLSPACING=0 CELLPADDING=2 BGCOLOR="#E0E0E0">
    <TR>
    <TD>Host (change as necessary in script):</TD>
    <TD><B><% = strHost %></B></TD>
    </TR>
    <TR>
    <TD>From (enter sender's address):</TD>
    <TD><INPUT TYPE="TEXT" NAME="From"></TD>
    </TR>
    <TR>
    <TD>FromName (optional, enter sender's name):</TD>
    <TD><INPUT TYPE="TEXT" NAME="FromName"></TD>
    </TR>
    <TR>
    <TD>To: (enter one recipient's address):</TD>
    <TD><INPUT TYPE="TEXT" NAME="To"></TD>
    </TR>
    <TR>
    <TD>Subject:</TD>
    <TD><INPUT TYPE="TEXT" NAME="Subject"></TD>
    </TR>
    <TR>
    <TD>Body:</TD>
    <TD><TEXTAREA NAME="Body"></TEXTAREA></TD>
    </TR>
    <TR>
    <TD COLSPAN=2><INPUT TYPE="SUBMIT" NAME="Send" VALUE="Send Message">
    </TD>
    </TR>
    </TABLE>
    </FORM>
    </BODY>
    </HTML>


Advertisement