ASP programming for email notification

Discussion in 'Site Programming, Development and Design' started by RickyDoda, Sep 28, 2011.

  1. Hi my name is Richard, I need some help to get my web site (cdsdirectory.ca) on Winhost working properly. It is basically all working doing the downloads and appearance looks correct. However, my email system is not working, I have some asp code I need modified to make notification email work. Help would be appreciated. I am willing to pay.

    Following I beleive is the code in question. It should be noted that krognetix no longer exists and should be removed.

    If email communication preferred [email protected]


    -----------------------------------------------------------------------------------------------------------

    ' Capture the data from the form and replace the values in the text file listed below
    ' Then below we mail this data using JMail
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set f = fso_OpenTextFile("d:\inetpub\websites\cdsdirectory.ca\demoreg\update1.txt", 1)
    data = f.ReadAll
    data = replace(data, chr(9), " ")
    data = replace(data, "<C1>", request.form("C1"))
    data = replace(data, "<USERIP>", userip)


    ' Send the Mail Now
    Set mailobj = Server.CreateObject("JMail.SMTPMail")
    mailobj.ServerAddress = "send.krognetix.com"
    mailobj.Sender = "[email protected]"
    mailobj.SenderName = "CDS Directory"
    mailobj.subject = "CDS Update Downloaded"
    mailobj.AddRecipient("[email protected]")
    mailobj.Body = data
    mailobj.execute
     
    Last edited by a moderator: Oct 14, 2015
  2. Elshadriel

    Elshadriel Winhost Staff

    Last edited by a moderator: Oct 14, 2015

Share This Page