CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2003
    Location
    Bangalore, INDIA
    Posts
    180

    Especially for Jasper XAFAX

    Hi Jasper

    Just came across this component and thought you would be intrested. Go to Project -> References and select -

    "Microsoft CDO for NTS 1.2 Library", and try the following code -

    Code:
    Dim Cdontobj As New CDONTS.NewMail
    Dim aFile As String
    aFile = "c:\jack.txt"
    With Cdontobj
       .From = "aaa@aaa.aaa"
       .To = "<any_valid_emailid>"
       .Subject = "poem"
       .Body = "jack and jill went up the hill"
       If Dir(aFile) <> "" Then .AttachFile (aFile)
       .Send
    End With
    Set Cdontobj = Nothing
    Let me know if this was of any help to you.

    And for others, any suggestions guys ???

    Suhaib

    [Cimperiali: Edited for coloring and indenting purpouse]
    Last edited by Cimperiali; April 5th, 2003 at 08:11 AM.

  2. #2
    Join Date
    Nov 2002
    Location
    Netherlands
    Posts
    132
    Hi Suhaib,

    I found this Post today. It maybe a bit late but thank you for your efforts.

    Best regards,

    Jasper
    Flying is to throw yourself on the ground and miss

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured