• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Using CDO to send emails

J

jacko@

Guest
Hi,

I'm trying to do a very simple script to send emails using CDO on a Windows 2003 Web Edition server running Plesk 7.5.

The script is simple:

"
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="emailfrom"
myMail.To="emailto"
myMail.TextBody="This is a message."
myMail.Send()
set myMail=nothing

response.redirect "contact.asp"
response.end
%>
"

But I keep getting an application error and the following message in the logs:

06-08-09 13:33:10 W3SVC23235 HOSTNAME 10.10.149.150 GET /a.asp |7|80040220|The__SendUsing__configuration_value_is_invalid.__ 80 - 10.10.195.183 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-GB;+rv:1.8.0.6)+Gecko/20060728+Firefox/1.5.0.6 - - www.domain.com 500 0 0 1628 420 515

Any ideas what the problem might be?

I was wondering if it was something to do with MailEnable/MS Virtual SMTP server or possibly the webserver settings it self?

Thanks,
Jacko
 
Modified the scripts smtpserverport to 8025 and allowed 127.0.0.1 to relay through MS Virtual SMTP server. All good now.
 
Back
Top