Dashboard Shop Ask a question
Log in
Knowledge base
Introduction User Interface description FAQs VPS Hosting FAQs What is a VPS or VDS? Why is it Called 'Virtual'? Why is it Considered 'Dedicated'? What is the Difference Between VDS, VPS, VM, and Cloud Server? How is a Physical Server Shared Among Virtual Servers? How Does VPS Compare to Other Hosting Products? What are the Benefits of Using VPS Compared to Hardware Dedicated Servers? What Can I Do With My VPS? What Types of Operating Systems are Supported? Is it Possible to Install the OS of my choice? How Can I Access or Remotely Manage My Server? How are Resources Shared: Disk Space, Memory, Processor? Is There Firewall or Other Traffic Filters Between My Server and the Internet? What Hardware is Used for Hosting the VPS? SSL FAQs What is SSL? Does Somee.com Offer SSL Certificates? What are Let's Encrypt SSL Certificates? What is a Certificate Authority? How long does enrollment take and how soon will I be able to secure my site? What is a certificate signing request or CSR? How do visitors know if a website is using SSL? Are There Any Costs Involved? What About Certificate Renewals? How Does Let's Encrypt Benefit My Website? How Do I Set Up a Let's Encrypt SSL Certificate on Somee.com? Is Let's Encrypt Trusted by All Major Browsers? Can I Use Let’s Encrypt for E-commerce Sites? What Happens to the SSL Certificate if I Change My Hosting Provider? Are There Any Limitations of Using Let’s Encrypt SSL Certificates? Windows Hosting FAQs What is Windows Hosting? Can I host my ASP.Net or .Net Core website? Which version of Microsoft .NET Framework do you support? Do you support Microsoft Access databases? Can I open a hosting account without a domain name? If I already own a domain, do I have to transfer it to you? Can I recover my website from your backups? What types of websites are best suited for Windows Hosting? Do you offer support for other programming languages and technologies besides ASP.NET and .NET Core? What is the uptime guarantee for your Windows Hosting service? What security measures are in place to protect my website and data? What is your policy on server maintenance and downtime? ASP.NET Hosting What is ASP.Net Hosting? What is ASP.NET Core? MS SQL Server Database FAQs What are the Benefits of Using SQL Server? What Applications Can Be Developed with SQL Server? What is Microsoft SQL Azure? What are the Hosting Options for SQL Server? Does SQL Server Have a Reporting Engine? Does SQL Server Support Spatial and Location Data? What are SQL Server's Integration and Migration Capabilities? Can Mobile Device Applications Use SQL Server? How is SQL Server Compact Licensed? Knowledge base Code samples MS Access Connect to MS access database usin DSN-less connection Email Sending email from ASP.Net page using local mail server Send an Email message using CDOSYS Send an Email message using CDOSYS and Google Apps mail servers Send Email via C# through Google Apps account Troubleshooting Web site errors General HTTP errors 500 Internal Server error for all ASP pages 404.17 Not Found. The requested content appears to be script and will not be served by the static file handler This page isn’t working (HTTP ERROR 500) in ASP.NET Core app ASP.Net Errors Library not found Scripts written with ASP.NET version 2.0 or higher return errors. I have uploaded files, but it showing “Site under construction” Session variables expire irregulary One of your services has been disabled because it used as a file storage MS SQL errors The media set has x media families but only 1 are provided Enterpise Manager connection hangs or has delayed response time Mail errors Unable to send email. Error: “No Server”. Unable to send email. Errors: (550) No relay, or (530) no authentication. MS Access errors Can not connect to MS Access database. Virtual servers Virtual server recovery Remote Desktop Connection ‘Internal Error has occurred’ What type of support provided for self-managed Virtual servers Free web hosting Why did my free MS SQL database got deleted and can I restore it? Why did my free website got deleted and can I restore it? Configuration Host a WCF service in IIS How to Register a new account Your Payment Options Keep your free account active Create a website Manage website Upload website content How to deploy Web project from Visual Studio Add a domain to your web site Manage default docments Grant write, modify, delete access rights on website's folder Upgrading from free to paid hosting Host a Non-English website Deploy MS SQL database Create an empty MS SQL database Manage MS SQL database Run SQL script Backup database Restore database Attach database Get database files Connect to database Manage backup location List database tables MS SQL Database connection string Upgrading from free to paid MS SQL hosting Manage email Add mail domain. Add SMTP account Add Mailbox Add MX record Setup mail client Create a Virtual Dedicated Server (VDS) Manage virtual server Access virtual server remotely Access virtual server with ESXi vSphere Client Protect Windows virtual server Upgrade virtual server Virtual server DNS management Pointing a domain name to your Virtual Server Manage your SSL certificates Free SSL certificates Export SSL certificate Bind free SSL certificate to a website on Windows VPS Deploy ASP.Net Core application Enable shadow copies for ASP.Net Core application Legal documents Terms of service Privacy policy Refund Policy

Send an Email message using CDOSYS

CDOSYS is enabled by default. The SMTP server and Authentication information will be given when you create a mailbox

C# ASP.Net example:
   
 C# ASP.Net example: 
    
    using System.Web.Mail; 
    
    eMail = new MailMessage(); 
    eMail.BodyFormat = MailFormat.Text; 
    eMail.From = _SendFrom; 
    eMail.Fields["http://schemas.microsoft.com/cdo/configuration/smtsperver"] = "SMTPServerName"; 
    eMail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserverport"] = 25; 
    eMail.Fields["http://schemas.microsoft.com/cdo/configuration/sendusing"] = 2; 
    if (SMTPUser != null && SMTPPassword != null) 
    { 
    eMail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"] = 1; 
    eMail.Fields["http://schemas.microsoft.com/cdo/configuration/sendusername"] = "SMTPAUTHUser"; 
    eMail.Fields["http://schemas.microsoft.com/cdo/configuration/sendpassword"] = "SMTPAUTHPassword"; 
    } 
    eMail.To = "recipients"; 
    SmtpMail.SmtpServer = SMTPServerName; 
    SmtpMail.Send(eMail); 
   
    
Classic ASP code example:
   
   Dim ObjSendMail
   Set ObjSendMail = CreateObject("CDO.Message")
   
   'This section provides the configuration information for the remote SMTP server.
   
   ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).
   ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="mail.yoursite.com"
   ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
   ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False 'Use SSL for the connection (True or False)
   ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
   
   ' authentication
   ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication
   ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="somemail@yourserver.com"
   ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="yourpassword"
   
   ObjSendMail.Configuration.Fields.Update
   
   'End remote SMTP server configuration section==
   
   ObjSendMail.To = "someone@someone.net"
   ObjSendMail.Subject = "this is the subject"
   ObjSendMail.From = "someone@someone.net"
   
   ' we are sending a text email.. simply switch the comments around to send an html email instead
   'ObjSendMail.HTMLBody = "this is the body"
   ObjSendMail.TextBody = "this is the body"
   
   ObjSendMail.Send
   
   Set ObjSendMail = Nothing
© Copyright 2024 Doka management panel