InfoQuest Knowledgebase InfoQuest Knowledgebase

  • Home
  • Knowledgebase
    • Billing
    • Control Panel
    • Data Center
    • Databases
    • Domains
    • Email
    • FTP
    • Hosted Exchange
    • SSL Certificates
    • Virtual Private Servers
    • Webmail
    • Website Hosting
  • FAQ
  • Contact
  • Visit InfoQuest.com
Home / Website Hosting / Using CDOSYS without authentication (POA)

Using CDOSYS without authentication (POA)

Here is the code that you’ll need to use using CDOSYS with POA without authentication

Please note you will want to replace the FROM and TO fields with valid email addresses.

———- code starts below here ———

<%
‘ Build HTML for message body
strHTML = “<HTML>”
strHTML = strHTML & “<HEAD>”
strHTML = strHTML & “<BODY>”
strHTML = strHTML & “<b> This is the test HTML message body</b></br>”
strHTML = strHTML & “</BODY>”
strHTML = strHTML & “</HTML>”

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”) = “127.0.0.1”
cdoConfig.Fields.Update
set cdoMessage.Configuration = cdoConfig

cdoMessage.From = “FromEmailAddress@yourdomain.tld”
cdoMessage.To = “ToEmailAddress@yourdomain.tld”
cdoMessage.Subject = “This is a test CDOSYS message”
cdoMessage.HtmlBody = strHTML
cdoMessage.Send

set cdoMessage = Nothing
set cdoConfig = Nothing
%>

———- code ends above here ———

Website Hosting

Related Articles

  • Professional Services
  • iframe Dynamic Height Script
  • Where do I go to leave positive feedback for support?
  • Improving Website Performance

Knowledgebase Categories

  • 7Billing
  • 50Control Panel
  • 4Data Center
  • 4Databases
  • 12Domains
  • 58Email
  • 4FTP
  • 38Hosted Exchange
  • 7SSL Certificates
  • 25Virtual Private Servers
  • 5Webmail
  • 47Website Hosting

Most Helpful Articles

  • How to change WordPress siteURL to IP address using phpmyadmin (POA)
  • Remove index.php from WordPress URL (POA)
  • How To Setup An Archive Folder in Outlook for MAC (POA)
  • How to Redirect a Registered Domain (POA)
  • Share Exchange Outlook calendar on iOS devices (POA)
  • Changing the WordPress URL Path to web root “/” or another path (POA)
  • Where do I go to leave positive feedback for support?
Copyright © 2020 - InfoQuest Technologies, Inc.