{"id":133,"date":"2016-03-21T20:02:48","date_gmt":"2016-03-21T18:02:48","guid":{"rendered":"http:\/\/www.domainhizmetleri.com\/blog\/?p=133"},"modified":"2021-09-10T20:13:56","modified_gmt":"2021-09-10T17:13:56","slug":"aspde-cdo-yontemiyle-e-posta-gondermek","status":"publish","type":"post","link":"https:\/\/www.domainhizmetleri.com\/blog\/aspde-cdo-yontemiyle-e-posta-gondermek\/","title":{"rendered":"ASP&#8217;de CDO Y\u00f6ntemiyle E-posta G\u00f6ndermek"},"content":{"rendered":"<p>ASP eski ama hala ge\u00e7erlili\u011fi olan bir dil. Fakat baz\u0131 yetenekleri k\u0131s\u0131tl\u0131 ve bunlar i\u00e7in ekstra \u00e7\u00f6z\u00fcmlere ihtiya\u00e7 duyuluyor. E-posta g\u00f6nderme i\u015flemleri&nbsp;de bu kapsamdad\u0131r.<\/p>\n<p>Bir\u00e7ok Windows sunucuda CDO ile sorunsuz bi\u00e7imde e-posta g\u00f6nderimi sa\u011flanabilmektedir. A\u015fa\u011f\u0131da payla\u015ft\u0131\u011f\u0131m\u0131z kodlar\u0131 kullanabilirsiniz :<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Const cdoSendUsingPickup = 1 'Send message using the local SMTP service pickup directory. \nConst cdoSendUsingPort = 2 'Send the message using the network (SMTP over the network). \n\nConst cdoAnonymous = 0 'Do not authenticate\nConst cdoBasic = 1 'basic (clear-text) authentication\nConst cdoNTLM = 2 'NTLM\n\nSet objMessage = CreateObject(\"CDO.Message\") \nobjMessage.Subject = \"Example CDO Message\" \nobjMessage.From = \"\"\"Ad\u0131n\u0131z Soyad\u0131n\u0131z\"\" &lt;gonderenmail@domainadiniz.com&gt;\" \nobjMessage.To = \"alicimailadresi@gmail.com\" \nobjMessage.TextBody = \"Mail i\u00e7eri\u011fini buraya giriniz\" &amp; vbCRLF &amp; \"Bu g\u00f6nderim SMTP iletim kullanacakt\u0131r.\"\n\n'==This section provides the configuration information for the remote SMTP server.\n\nobjMessage.Configuration.Fields.Item _\n(\"http:\/\/schemas.microsoft.com\/cdo\/configuration\/sendusing\") = 2 \n\n'Name or IP of Remote SMTP Server\nobjMessage.Configuration.Fields.Item _\n(\"http:\/\/schemas.microsoft.com\/cdo\/configuration\/smtpserver\") = \"mail.alanadi.com\"\n\n'Type of authentication, NONE, Basic (Base64 encoded), NTLM\nobjMessage.Configuration.Fields.Item _\n(\"http:\/\/schemas.microsoft.com\/cdo\/configuration\/smtpauthenticate\") = cdoBasic\n\n'Your UserID on the SMTP server\nobjMessage.Configuration.Fields.Item _\n(\"http:\/\/schemas.microsoft.com\/cdo\/configuration\/sendusername\") = \"gonderenmail@domainadiniz.com\"\n\n'Your password on the SMTP server\nobjMessage.Configuration.Fields.Item _\n(\"http:\/\/schemas.microsoft.com\/cdo\/configuration\/sendpassword\") = \"parolaniziburayayaziniz\"\n\n'Server port (typically 25)\nobjMessage.Configuration.Fields.Item _\n(\"http:\/\/schemas.microsoft.com\/cdo\/configuration\/smtpserverport\") = 587 \n\n'Use SSL for the connection (False or True)\nobjMessage.Configuration.Fields.Item _\n(\"http:\/\/schemas.microsoft.com\/cdo\/configuration\/smtpusessl\") = False\n\n'Connection Timeout in seconds (the maximum time CDO will try to establish a connection to the SMTP server)\nobjMessage.Configuration.Fields.Item _\n(\"http:\/\/schemas.microsoft.com\/cdo\/configuration\/smtpconnectiontimeout\") = 60\n\nobjMessage.Configuration.Fields.Update\n\n'==End remote SMTP server configuration section==\n\nobjMessage.Send<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ASP eski ama hala ge\u00e7erlili\u011fi olan bir dil. Fakat baz\u0131 yetenekleri k\u0131s\u0131tl\u0131 ve bunlar i\u00e7in ekstra \u00e7\u00f6z\u00fcmlere ihtiya\u00e7 duyuluyor. E-posta g\u00f6nderme i\u015flemleri&nbsp;de bu kapsamdad\u0131r. Bir\u00e7ok Windows sunucuda CDO ile sorunsuz bi\u00e7imde e-posta g\u00f6nderimi sa\u011flanabilmektedir. A\u015fa\u011f\u0131da payla\u015ft\u0131\u011f\u0131m\u0131z kodlar\u0131 kullanabilirsiniz : Const cdoSendUsingPickup = 1 &#8216;Send message using the local SMTP service pickup directory. Const cdoSendUsingPort = [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2497,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[143,142],"tags":[13,14,11,9,8],"class_list":["post-133","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-domain-hosting","category-yazilim-pratikleri","tag-asp","tag-cdo","tag-e-posta","tag-iis","tag-windows"],"views":1104,"_links":{"self":[{"href":"https:\/\/www.domainhizmetleri.com\/blog\/wp-json\/wp\/v2\/posts\/133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.domainhizmetleri.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.domainhizmetleri.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.domainhizmetleri.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.domainhizmetleri.com\/blog\/wp-json\/wp\/v2\/comments?post=133"}],"version-history":[{"count":2,"href":"https:\/\/www.domainhizmetleri.com\/blog\/wp-json\/wp\/v2\/posts\/133\/revisions"}],"predecessor-version":[{"id":2498,"href":"https:\/\/www.domainhizmetleri.com\/blog\/wp-json\/wp\/v2\/posts\/133\/revisions\/2498"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.domainhizmetleri.com\/blog\/wp-json\/wp\/v2\/media\/2497"}],"wp:attachment":[{"href":"https:\/\/www.domainhizmetleri.com\/blog\/wp-json\/wp\/v2\/media?parent=133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.domainhizmetleri.com\/blog\/wp-json\/wp\/v2\/categories?post=133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.domainhizmetleri.com\/blog\/wp-json\/wp\/v2\/tags?post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}