A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Send Emails with Outlook by Api



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 1st 06, 10:36 AM posted to microsoft.public.outlook.program_vba
peterfarge
external usenet poster
 
Posts: 4
Default Send Emails with Outlook by Api

Hello NG,

I want to send Emails with MS Outlook by a plain C dll function. Has
someone an example how to control Outlook by API?

Or I must translate this VBA Macro I have found in the internet:
Private Sub SendMailExample()
Dim olApp As Outlook.Application
Dim oItem As Outlook.MailItem

Set olApp = New Outlook.Application
Set oItem = olApp.CreateItem(Outlook.OlItemType.olMailItem)
With oItem
.To = "
.Subject = "Revolution"
.Body = "Steve Ballmer takes control on Microsoft!"
.Attachments.Add "d:\abc.txt"
.ReadReceiptRequested = False
.Send
End With
End Sub
How can I translate this code to plain c? I need the datastructures. In
which dlls are this functions?



Regards

Peter

Ads
  #2  
Old August 6th 06, 01:35 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Send Emails with Outlook by Api

You will need to use #import in VC++ to import the Outlook type library and
generate the C++ header file.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"peterfarge" wrote in message
oups.com...
Hello NG,

I want to send Emails with MS Outlook by a plain C dll function. Has
someone an example how to control Outlook by API?

Or I must translate this VBA Macro I have found in the internet:
Private Sub SendMailExample()
Dim olApp As Outlook.Application
Dim oItem As Outlook.MailItem

Set olApp = New Outlook.Application
Set oItem = olApp.CreateItem(Outlook.OlItemType.olMailItem)
With oItem
.To = "
.Subject = "Revolution"
.Body = "Steve Ballmer takes control on Microsoft!"
.Attachments.Add "d:\abc.txt"
.ReadReceiptRequested = False
.Send
End With
End Sub
How can I translate this code to plain c? I need the datastructures. In
which dlls are this functions?



Regards

Peter



  #3  
Old August 7th 06, 09:41 AM posted to microsoft.public.outlook.program_vba
peterfarge
external usenet poster
 
Posts: 4
Default Send Emails with Outlook by Api

Thanks. :-)



Dmitry Streblechenko schrieb:

You will need to use #import in VC++ to import the Outlook type library and
generate the C++ header file.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"peterfarge" wrote in message
oups.com...
Hello NG,

I want to send Emails with MS Outlook by a plain C dll function. Has
someone an example how to control Outlook by API?

Or I must translate this VBA Macro I have found in the internet:
Private Sub SendMailExample()
Dim olApp As Outlook.Application
Dim oItem As Outlook.MailItem

Set olApp = New Outlook.Application
Set oItem = olApp.CreateItem(Outlook.OlItemType.olMailItem)
With oItem
.To = "
.Subject = "Revolution"
.Body = "Steve Ballmer takes control on Microsoft!"
.Attachments.Add "d:\abc.txt"
.ReadReceiptRequested = False
.Send
End With
End Sub
How can I translate this code to plain c? I need the datastructures. In
which dlls are this functions?



Regards

Peter


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Send Emails with Outlook by Api peterfarge Outlook - General Queries 2 August 1st 06 10:15 AM
Convert double value return by Outlook api to CTime amit deshpande Outlook and VBA 2 June 27th 06 06:56 AM
Outlook Account Management API Rom Add-ins for Outlook 2 June 8th 06 04:54 PM
Outlook Send/Receive API Colin Bowern Outlook and VBA 0 June 7th 06 05:36 PM
Outlook Calendar API [email protected] Outlook - General Queries 2 March 13th 06 06:11 AM


All times are GMT +1. The time now is 02:53 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.