473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problems using MAPI/CDO in C++ (getting Mail Adress)

Hi,

I wrote a little tool. It makes a connection to Outlook and reads the
mails in the folders.
Its working fine..I can get a lot of properties from the messages. But
no Email-addresses (FROM, TO, REPLY). I know I can do it with CDO and
found a lot of VB and Delphi examples. But how can I fetch the addresses
from an email with c++?? Is it possible with C++?? And..but not so
important..is it possible to fetch the Email-Source from Outlook?
Here is the codepart:

....
//MailItemPtr mail
String MailSubject = mail->Subject;
String MailBody = mail->HTMLBody;
long MailDate = mail->get_ReceivedTime();
String MailFrom = mail->get_SenderName();
String MailTo = mail->get_ReceivedByName();
//String MailToAddress = ???
//String MailFromAddress = ???
//String MailReplyAddress= ???
....

Thanks a lot for any ideas!

Axel

Jul 19 '05 #1
1 2932
Axel wrote:
Hi,

I wrote a little tool. It makes a connection to Outlook and reads the
mails in the folders.
Its working fine..I can get a lot of properties from the messages. But
no Email-addresses (FROM, TO, REPLY). I know I can do it with CDO and

[SNIP]

http://www.slack.net/~shiva/welcome.txt

http://www.slack.net/~shiva/offtopic.txt

--
WW aka Attila
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ky | last post by:
Hi I'm writing a small app to send email and need to use MAPI so that the user can just select their Outlook profile and what not and don't have to know anything about their SMTP server. If...
0
by: Nitec Dev | last post by:
Our setup: server1 ASP database running on IIS5, Outlook 2000 and SQL 2000 on Windows 2000. Server2 runs Windows 2000 with Exchange 2000 using CDO 1.2 MAPI Sessions. Clients use IE5/6 and had...
5
by: Larry Bertolini | last post by:
Scenario: DBMS: SQL Server 2000 OS: Windows Server 2003 Goal: Enable SQLMAIL via Internet Mail Problem: How do I set up the MAPI profile for the SQL Server service account?
0
by: Noonan, Derek | last post by:
Hi all, I am trying to read information from the GAL using C#. I am able to return a list of all the addresses and names, however, when I walk through each address I cannot access the mailbox (I...
4
by: Noonan, Derek | last post by:
Hi all, I'm reposting this, as I feel that it may have got buried. If anyone can help me then I'd really appreciate it... I am trying to read information from the GAL using C#. I am able to...
0
by: Kevin Quigley | last post by:
Hi, I have a web page that will send emails to various addresses, I've tried using the SmtpMail class but no matter what I try it will not work. I have an asp page that does actually work...
0
by: berend.kapelle | last post by:
Hi, i found this code from outlookcode.com http://www.outlookcode.com/codedetail.aspx?id=139 Its written in VB, and i have some problem porting it to C#. The problem is getting the right...
1
by: tomer.ha | last post by:
Hi there, I'd like to send emails from a Python program using Simple MAPI. I've tried this code: http://mail.python.org/pipermail/python-list/2004-December/298066.html and it works well with...
0
by: ilan67 | last post by:
Hi everyone, i made a form on vb6 and it sends a mail, i can even automaticly send the outlook form the email adress i want to send to, and it works well. my main problem is that i want to save...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.