<?xml version="1.0" encoding="iso-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Dansk Regneark Forum : Vedhæft fil i mail.</title>
  <link>https://forum.excel-regneark.dk/</link>
  <description><![CDATA[Dette er et XML Feed af; Dansk Regneark Forum : Generelt : Vedhæft fil i mail.]]></description>
  <pubDate>Sat, 05 Dec 2026 12:28:39 +0000</pubDate>
  <lastBuildDate>Fri, 17 Jul 2020 12:39:03 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.excel-regneark.dk/RSS_post_feed.asp?TID=4314</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Dansk Regneark Forum]]></title>
   <url>https://forum.excel-regneark.dk/css_styles/Excel-regneark.dk/logo.png</url>
   <link>https://forum.excel-regneark.dk/</link>
  </image>
  <item>
   <title><![CDATA[Vedhæft fil i mail. : Hej jeg bruger det hercdo script...]]></title>
   <link>https://forum.excel-regneark.dk/vedhft-fil-i-mail_topic4314_post21352.html#21352</link>
   <description>
    <![CDATA[<strong>Forfatter:</strong> <a href="https://forum.excel-regneark.dk/member_profile.asp?PF=2124">Kenny.E</a><br /><strong>Emne:</strong> 4314<br /><strong>Sendt:</strong> 17.Jul.2020 kl. 12:39<br /><br />Hej jeg bruger det her&nbsp;cdo script men jeg kan ikke få det til at sende den vedhæftet fil med det sender kun beskeden håber der er en der kan hjælpe.<div>Hilsen</div><div>Kenny</div><div><br></div><div><div>Private Sub CmdSendMail_Click()</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp; Dim mail&nbsp; &nbsp; As Object&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;' CDO.MESSAGE</div><div>&nbsp; &nbsp; Dim config&nbsp; As Object&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;' CDO.Configuration</div><div>&nbsp; &nbsp; Dim xFileToOpen As String</div><div>&nbsp; &nbsp; Set mail = CreateObject("CDO.Message")</div><div>&nbsp; &nbsp; Set config = CreateObject("CDO.Configuration")</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; config.fields(cdoSendUsingMethod).Value = cdoSendUsingPort</div><div>&nbsp; &nbsp; config.fields(cdoSMTPServer).Value = "smtp.gmail.com"</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp; config.fields(cdoSMTPServerPort).Value = 465&nbsp; ' implicit SSL - Does not work with Explicit SSL (StartTLS) usually on Port 587</div><div>&nbsp; &nbsp; config.fields(cdoSMTPUseSSL).Value = "true"</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; config.fields(cdoSMTPAuthenticate).Value = cdoBasic</div><div>&nbsp; &nbsp; config.fields(cdoSendUserName).Value = "xxxxxxxx@xxxx.com"</div><div>&nbsp; &nbsp; config.fields(cdoSendPassword).Value = "xxxxxxxxx"</div><div><br></div><div>&nbsp; &nbsp; config.fields.Update</div><div>&nbsp; &nbsp; Set mail.Configuration = config</div><div>&nbsp; &nbsp; On Error Resume Next</div><div>&nbsp; &nbsp; ChDrive "M:"</div><div>&nbsp; &nbsp; ChDir "M:\xxxxxxx\xxxxxxx"</div><div>&nbsp; &nbsp; xFileToOpen = Application.GetOpenFilename(FileFilter:="PDF files,*.pdf", Title:="Select the right attachment")</div><div>&nbsp; &nbsp; With mail</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .To = "xxxxx@xxxxxxxxxx.xxx"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .From = "xxxxxxx@xxxxx.xxx"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .Subject = "First email with CDO"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .TextBody = "This is the body of the first plain text email with CDO."</div><div>&nbsp; &nbsp; &nbsp; &nbsp; If xFileToOpen &lt;&gt; "" Then Add.Attachments xFileToOpen, 1</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .Send</div><div>&nbsp; &nbsp; End With</div><div>&nbsp; &nbsp; On Error GoTo 0</div><div>&nbsp; &nbsp; Set config = Nothing</div><div>&nbsp; &nbsp; Set mail = Nothing</div><div>Unload Me 'delete userform</div><div>End Sub</div></div>]]>
   </description>
   <pubDate>Fri, 17 Jul 2020 12:39:03 +0000</pubDate>
   <guid isPermaLink="true">https://forum.excel-regneark.dk/vedhft-fil-i-mail_topic4314_post21352.html#21352</guid>
  </item> 
 </channel>
</rss>