I just got notice from a client that their contact form on their website no longer sends an email when someone uses it. This form uses CDOSYS to generate the email. As you can see below, it uses the client's Jodohost mail server with SMTP authentication. This was working fine for quite a while and just stopped working without any changes to code or the website. Also, this same code is used on many other websites of mine without issue.
I also submitted a ticket regarding this- INU-80341-506
I was reading on the forums for others with similar issues, but none seemed to fit my situation.
Code:
set cdoMessage = Server.CreateObject("CDO.Message")
set cdoConfig = Server.CreateObject("CDO.Configuration")
cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.xxxx.com"
cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") ="xxxxx"
cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="xxxxx"
set cdoMessage.Configuration = cdoConfig
cdoMessage.From = "customer.support@xxxxx"
cdoMessage.ReplyTo = request.form("email")
cdoMessage.To = "customer.support@xxxxx"
cdoMessage.Subject = "SMI contact form"
cdoMessage.HtmlBody = body
cdoMessage.Send
I also submitted a ticket regarding this- INU-80341-506
I was reading on the forums for others with similar issues, but none seemed to fit my situation.