Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Auto Mail.cgi

Options
  • 28-09-2009 3:41pm
    #1
    Registered Users 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 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