• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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