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 = fspenTextFile("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
Hi Richard, We don't support JMail. You can use CDO or Persits instead, and we provide sample code in the following knowledgebase articles: http://support.Winhost.com/KB/a617/how-to-send-mail-using-cdo.aspx http://support.Winhost.com/KB/a683/persits-aspemail-sample-code.aspx You'll also want to change your directory path to your text file. You can find your server path information in the Site Info section of your Control Panel.