nsForum logo

Welcome Guest ( Log In )

Reply to this topicStart new topic
> Updating Asp Formmail For Sites Migrated To Windows 2008/2012
Rating 5 V
post Feb 2 2015, 09:54 PM
Post #1

Group: Administrators
Posts: 990
Joined: 23-June 08
From: Pennsylvania
Member No.: 1,317

If your windows package has been migrated to a Windows 2008/2012 server and your formmail scripts are throwing a 500 error, you most likely need to add a section defining the settings for http://schemas.microsoft.com/cdo/configuration/. Example code follows (This example is classic ASP code, not ASP.Net).

Set myEmail = Server.CreateObject("CDO.Message")
schemasURL = "http://schemas.microsoft.com/cdo/configuration/"
With myEmail.Configuration.Fields
.Item(schemasURL & "sendusing") = 2
.Item(schemasURL & "smtpserver") = "localhost"
.Item(schemasURL & "smtpconnectiontimeout") = 10
.Item(schemasURL & "smtpserverport") = 25
.Item (schemasURL & "smtpusessl") = False
.Item (schemasURL & "smtpconnectiontimeout") = 60
End With
myEmail.From = "you@example.com"
myEmail.To = "someone@example.com"
myEmail.Subject = "Feedback from website"
myEmail.TextBody = "My Message"
Set myEmail = Nothing
Go to the top of the page
+Quote Post
post May 27 2015, 09:18 PM
Post #2

Group: Verified NS Member
Posts: 181
Joined: 31-August 08
From: ky
Member No.: 2,243

Well, this must be a first!

NetSol being proactive in providing a solution to a problem that is likely to come up with migrated users, such as me.

Thanks, it works! (IMG:http://forums.networksolutions.com/style_emoticons/default/biggrin.gif)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version    Network Solutions © 2011 Time is now: 23rd January 2018 - 06:28 PM
Domain Names | Web Hosting | Web Design | Shopping Cart Software | Online Marketing | SSL Certificates