{"id":21683,"date":"2024-03-25T19:22:42","date_gmt":"2024-03-25T18:22:42","guid":{"rendered":"https:\/\/kunskap.websupport.se\/kb\/send-email-via-classic-asp\/"},"modified":"2024-03-25T19:22:42","modified_gmt":"2024-03-25T18:22:42","slug":"send-email-via-classic-asp","status":"publish","type":"ht_kb","link":"https:\/\/kunskap.websupport.se\/en\/kb\/send-email-via-classic-asp\/","title":{"rendered":"Send email via classic asp"},"content":{"rendered":"\n

To send emails with ASP.NET, check out this guide<\/a>, where we show you how to do it.<\/p>\n\n

If you want to use classic ASP instead, you can send e-mail through CDOSYS (we do not support Jmail). The example below shows how to send a message through Websupport’s email servers.<\/p>\n\n

<% Set msg = CreateObject(\"CDO.Message\") \nmsg.Subject = \"This is the subject\" \nmsg.From = \"from@example.com\" \nmsg.To = \"to@example.se\" \nmsg.TextBody = \"This is the message.\" \nConst CDOSchema = \"http:\/\/schemas.microsoft.com\/cdo\/configuration\/\" \nWith msg.Configuration.Fields \n.Item(CDOSchema & \"sendusing\") = 2 \n.Item(CDOSchema & \"smtpserver\") = \"smtp.websupport.se\" \n.Item(CDOSchema & \"smtpserverport\") = 587 \n.Item(CDOSchema & \"smtpauthenticate\") = 1 \n.Item(CDOSchema & \"sendusername\") = \"from@example.com\" \n.Item(CDOSchema & \"sendpassword\") = \"Mail account password\" \n.Update \nEnd With \nmsg.Send \nset msg = nothing \n%><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"

To send emails with ASP.NET, check out this guide, where we show you how to do it. If you want to use classic ASP instead, you can send e-mail through CDOSYS (we do not support Jmail). The example below shows how to send a message through Websupport’s email servers.<\/p>\n","protected":false},"author":45,"template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[465],"ht-kb-tag":[466],"class_list":["post-21683","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-windows-en","ht_kb_tag-jmail-en"],"yoast_head":"\nSend email via classic asp - Websupport kunskapsdatabas<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kunskap.websupport.se\/en\/kb\/send-email-via-classic-asp\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Send email via classic asp - Websupport kunskapsdatabas\" \/>\n<meta property=\"og:description\" content=\"To send emails with ASP.NET, check out this guide, where we show you how to do it. If you want to use classic ASP instead, you can send e-mail through CDOSYS (we do not support Jmail). The example below shows how to send a message through Websupport’s email servers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kunskap.websupport.se\/en\/kb\/send-email-via-classic-asp\/\" \/>\n<meta property=\"og:site_name\" content=\"Websupport kunskapsdatabas\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kunskap.websupport.se\/en\/kb\/send-email-via-classic-asp\/\",\"url\":\"https:\/\/kunskap.websupport.se\/en\/kb\/send-email-via-classic-asp\/\",\"name\":\"Send email via classic asp - Websupport kunskapsdatabas\",\"isPartOf\":{\"@id\":\"https:\/\/kunskap.websupport.se\/en\/#website\"},\"datePublished\":\"2024-03-25T18:22:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kunskap.websupport.se\/en\/kb\/send-email-via-classic-asp\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kunskap.websupport.se\/en\/kb\/send-email-via-classic-asp\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kunskap.websupport.se\/en\/kb\/send-email-via-classic-asp\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kunskap.websupport.se\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Send email via classic asp\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kunskap.websupport.se\/en\/#website\",\"url\":\"https:\/\/kunskap.websupport.se\/en\/\",\"name\":\"Websupport kunskapsdatabas\",\"description\":\"Websupport kunskapsdatabas\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kunskap.websupport.se\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Send email via classic asp - Websupport kunskapsdatabas","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kunskap.websupport.se\/en\/kb\/send-email-via-classic-asp\/","og_locale":"en_US","og_type":"article","og_title":"Send email via classic asp - Websupport kunskapsdatabas","og_description":"To send emails with ASP.NET, check out this guide, where we show you how to do it. If you want to use classic ASP instead, you can send e-mail through CDOSYS (we do not support Jmail). The example below shows how to send a message through Websupport’s email servers.","og_url":"https:\/\/kunskap.websupport.se\/en\/kb\/send-email-via-classic-asp\/","og_site_name":"Websupport kunskapsdatabas","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/kunskap.websupport.se\/en\/kb\/send-email-via-classic-asp\/","url":"https:\/\/kunskap.websupport.se\/en\/kb\/send-email-via-classic-asp\/","name":"Send email via classic asp - Websupport kunskapsdatabas","isPartOf":{"@id":"https:\/\/kunskap.websupport.se\/en\/#website"},"datePublished":"2024-03-25T18:22:42+00:00","breadcrumb":{"@id":"https:\/\/kunskap.websupport.se\/en\/kb\/send-email-via-classic-asp\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kunskap.websupport.se\/en\/kb\/send-email-via-classic-asp\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kunskap.websupport.se\/en\/kb\/send-email-via-classic-asp\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kunskap.websupport.se\/"},{"@type":"ListItem","position":2,"name":"Send email via classic asp"}]},{"@type":"WebSite","@id":"https:\/\/kunskap.websupport.se\/en\/#website","url":"https:\/\/kunskap.websupport.se\/en\/","name":"Websupport kunskapsdatabas","description":"Websupport kunskapsdatabas","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kunskap.websupport.se\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/ht-kb\/21683","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/users\/45"}],"version-history":[{"count":1,"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/ht-kb\/21683\/revisions"}],"predecessor-version":[{"id":21684,"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/ht-kb\/21683\/revisions\/21684"}],"wp:attachment":[{"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/media?parent=21683"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/ht-kb-category?post=21683"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kunskap.websupport.se\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=21683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}