Easy question

Results 1 to 2 of 2

Thread: Easy question

  1. #1
    Join Date
    Dec 1969

    Default Easy question

    How can i use "CDONTS" to send an attachment to.<BR>I can&#039t get it to work<BR>Thank you in advance<BR>

  2. #2
    Cliff Osburn Guest

    Default RE: Easy question

    Like so:<BR><BR>Dim objMail &#039 As CDONTS.NewMail<BR>Set objMail = Server.CreateObject("CDONTS.NewMail")<BR>objMail.T o = "destination@host.com"<BR>objMail.From = "sender@host.com"<BR>objMail.Subject = "Subject goes here"<BR>objMail.Body = "The message goes here." <BR><BR>objMail.AttachFile "C:myfile.txt", "myfile.txt"<BR>objMail.Send<BR>Set objMail = Nothing <BR><BR>The first parameter is the pathname to the file. The second parameter is the name that appears with the attachment in the person&#039s e-mail. <BR>This is especially helpful if you have a long pathname or don&#039t want to show the user the original filename. <BR>Also the SMTP service must be running on the server from which you are sending your email....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts