dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Tell me how do I send E-Mail from Visual Basic

  1. #1
    Ashutosh C More Guest

    Tell me how do I send E-Mail from Visual Basic


    I am intrested in Sending E-Mail from Visual Baic.

    I also want to know what I should configure?
    Which control or method should I use to achieve it.

    Any body who can help me, can contact me at my EMail address.


  2. #2
    Dave Guest

    Re: Tell me how do I send E-Mail from Visual Basic


    "Ashutosh C More" <ashucmore@rediff.com> wrote:
    >
    >I am intrested in Sending E-Mail from Visual Baic.
    >
    >I also want to know what I should configure?
    >Which control or method should I use to achieve it.
    >
    >Any body who can help me, can contact me at my EMail address.
    >



    This works if you are using Outlook

    Dim ol As Object
    Dim NewMessage As Object
    Set ol = CreateObject("outlook.application")
    Set NewMessage = ol.CreateItem(olMailItem)
    NewMessage.Attachments.Add "C:\Directory\Filename.txt", 1
    NewMessage.To = "Email address"
    NewMessage.Cc = "Email address"
    NewMessage.Subject = "Hello"
    NewMessage.Body = "Message"
    NewMessage.Display





  3. #3
    Galina Guest

    Re: Tell me how do I send E-Mail from Visual Basic


    "Ashutosh C More" <ashucmore@rediff.com> wrote:
    >
    >I am intrested in Sending E-Mail from Visual Baic.
    >
    >I also want to know what I should configure?
    >Which control or method should I use to achieve it.
    >
    >Any body who can help me, can contact me at my EMail address.
    >There is an object library called cdo.dll If you have Microsoft

    outlook e-mail set up on your macine this library should be in your
    windows\system directory. You can make refference to this library from
    Visual basic reference window and then check the objects from object
    browser. Also search internet for
    http://msdn.microsoft.com/library/ps...ect_design.htm

    This is the shortcut to the side that has description of each object.
    Good luck.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center