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.

ASP Programmer/Mailer Generator needed!!

  • 20-02-2007 04:14PM
    #1
    Registered Users, Registered Users 2 Posts: 123 ✭✭


    Hi,

    I'm looking for an ASP Programmer who would be interested in a nixer.

    The work involves creating the mailer script for an existing HTML form that includes an option to attach a file.
    I normally deal with this through PHP but the target server doesn't support PHP so I need to use ASP and don't have the time to bring myself up to scratch in ASP.

    Any Suggestions would be much appreciated


Comments

  • Closed Accounts Posts: 831 ✭✭✭Laslo


    It's dead easy. Just use CDOSYS - http://www.w3schools.com/asp/asp_send_email.asp


  • Registered Users, Registered Users 2 Posts: 123 ✭✭Clone


    Hi

    Thanks for the reply.

    I had a look at the link you sent, it does look simple enough although I'm not sure how to get my variables from my HTML form into the ASP.

    Would i do the following:

    Change the areas in inverted commas into the variable names I have and then POST from the html to this ASP file?

    Original ASP

    <%
    Set myMail=CreateObject("CDO.Message")
    myMail.Subject="Sending email with CDO"
    myMail.From="mymail@mydomain.com"
    myMail.To="someone@somedomain.com"
    myMail.TextBody="This is a message."
    myMail.AddAttachment "c:\mydocuments\test.txt"
    myMail.Send
    set myMail=nothing
    %>

    Edited to fit my form
    (notes are in italics)

    <%
    Set myMail=CreateObject("CDO.Message")
    myMail.Subject="Application Form"
    myMail.From= "email" (Variable defined in HTML Form, users email)
    myMail.To="me@mydomain"
    myMail.TextBody="Fname, Lname, Add" (The rest of my variables from HTML form)
    myMail.AddAttachment "file1" (the location of a file as defined by html)
    myMail.Send
    set myMail=nothing
    %>

    How would I get a "form sent" page or an error page to come up?

    Much appreciate your help on this, I've been banging my head of the wall, and run out of time on this project, although I have learnt a thing or two.


  • Moderators, Politics Moderators, Paid Member Posts: 44,038 Mod ✭✭✭✭Seth Brundle


    ASP or ASP.net?
    A good ASP 'formmail' script is here but ASP has no direct way of uploading files. However there are some upload scripts out there.
    Your best bet is to google for an ASP/ASP.net script


  • Registered Users, Registered Users 2 Posts: 21,278 ✭✭✭✭Eoin


    Clone,

    PM me (or post here) with the form fields you want, and the format of the email and I should be able to lash it together quickly enough. Edit - if the webserver supports ASP.net it's an awful lot quicker, as it has it's own inbuilt upload facility.

    Eoin


  • Registered Users, Registered Users 2 Posts: 123 ✭✭Clone


    Hi Eoin_s

    Thanks for the reply

    I've asked someone to have a look at it for me, once I hear back from them I'll let you know, just so I don't have two people trying to sort it out.

    Not sure if the server use's ASP.NET, I'll look into it though and let you know.


  • Advertisement
Advertisement