Sending email with Outlook 2010 via VB6-VBForums
Results 1 to 8 of 8

Thread: Sending email with Outlook 2010 via VB6

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2011
    Location
    São Paulo, Brasil
    Posts
    47

    Sending email with Outlook 2010 via VB6

    Hi,
    Does anybody know how could I send an email via vb6 and don't get the message of security of Outlook asking permission to send email in your name?
    I'm using the mapi controls in vb6 and Outlook 2010. I already tryied to use a function in outlook that gets the parameters from vb, like Cc, Bcc, Subject, etc. but it didn't work at all.
    IF SOMEBODY KNOW HOW TO DO THAT, PLEASE LET ME KNOW.
    ANY HELP WOULD BE APPRECIATED.

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Posts
    11,167

    Re: Sending email with Outlook 2010 via VB6

    This was a security fix first added to Outlook 2000 to prevent spammers from silently hijacking your Outlook account after thay had zombied your PC.

    If your program really needs to send email it should use the built in CDO for Windows and its own email credentials.

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2011
    Location
    São Paulo, Brasil
    Posts
    47

    Re: Sending email with Outlook 2010 via VB6

    Thanks dilettante for the tip.
    I'll try that.


    (Sorry for any misspelled word, I'm from Brazil.)

  4. #4
    Web developer Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    12,718

    Re: Sending email with Outlook 2010 via VB6

    You can do what you are asking using third-party components, information found here. Although, I suggest trying dilettante's method first. There are examples in the VB6 and Earlier code bank showing how to do this.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    Please consider giving me some rep points if I help you a lot.
    Links to my code examples can now be found on my website: My websites
    Please rate my post if you find it helpful!
    Technology is a dangerous thing in the hands of an idiot! I am that idiot.

  5. #5
    PowerPoster
    Join Date
    Feb 2006
    Posts
    11,167

    Re: Sending email with Outlook 2010 via VB6

    You can also look at Outlook Redemption if you truly need to piggyback on the user's default Outlook account. It works through Extended MAPI, which VB6's standard Simple MAPI components cannot use.

  6. #6
    Web developer Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    12,718

    Re: Sending email with Outlook 2010 via VB6

    Quote Originally Posted by dilettante View Post
    You can also look at Outlook Redemption if you truly need to piggyback on the user's default Outlook account. It works through Extended MAPI, which VB6's standard Simple MAPI components cannot use.
    Yeah, I have an example of how to use Redemption to do this, just download the attachment in the first post.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    Please consider giving me some rep points if I help you a lot.
    Links to my code examples can now be found on my website: My websites
    Please rate my post if you find it helpful!
    Technology is a dangerous thing in the hands of an idiot! I am that idiot.

  7. #7

    Thread Starter
    Member
    Join Date
    Apr 2011
    Location
    São Paulo, Brasil
    Posts
    47

    Re: Sending email with Outlook 2010 via VB6

    I downloaded your attachment at the link you posted, installed the redemption.dll, but I keep getting an error msg that says : "ActiveX Component can't create the object." and debugging it throws me to the following line : Set RDOSession = CreateObject("Redemption.RDOSession") at the apply function.
    I already have Office 2010 installed, and I also made reference to the redemption.dll in the project's references.

    Would you know what I can do to fix it?

  8. #8
    Web developer Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    12,718

    Re: Sending email with Outlook 2010 via VB6

    Quote Originally Posted by RSHEEP View Post
    Would you know what I can do to fix it?
    No I don't! However, I can find out for you. I only have Microsoft Office 2003 so I am not sure what the problem is.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    Please consider giving me some rep points if I help you a lot.
    Links to my code examples can now be found on my website: My websites
    Please rate my post if you find it helpful!
    Technology is a dangerous thing in the hands of an idiot! I am that idiot.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.