473,890 Members | 1,359 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Redemption + SenderID of a mail item

Hi
I ma trying to get mailid of the 'from' address in .NET. When i try to
access mailitem i could only see 'senderName' available both in
Outlook mailitem and Redemption. No senderid.

Tried accessing contacts but how to get the id of SenderName who is
not in contact?

How to get SenderId either by using redemption or not??

Thanks
Anushya
Nov 15 '05 #1
2 3260
See http://www.slipstick.com/dev/code/getsenderaddy.htm . It's VB/VBScript
code, not C#, but you'll see how you have to either access the MAPI Fields
collection with CDO or Redemption or create a reply message and use the
address from that message's Recipients collection.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"Anushya" <v_*******@hotm ail.com> wrote in message
news:80******** *************** ***@posting.goo gle.com...
Hi
I ma trying to get mailid of the 'from' address in .NET. When i try to
access mailitem i could only see 'senderName' available both in
Outlook mailitem and Redemption. No senderid.

Tried accessing contacts but how to get the id of SenderName who is
not in contact?

How to get SenderId either by using redemption or not??

Thanks
Anushya

Nov 15 '05 #2
See http://www.slipstick.com/dev/code/getsenderaddy.htm . It's VB/VBScript
code, not C#, but you'll see how you have to either access the MAPI Fields
collection with CDO or Redemption or create a reply message and use the
address from that message's Recipients collection.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"Anushya" <v_*******@hotm ail.com> wrote in message
news:80******** *************** ***@posting.goo gle.com...
Hi
I ma trying to get mailid of the 'from' address in .NET. When i try to
access mailitem i could only see 'senderName' available both in
Outlook mailitem and Redemption. No senderid.

Tried accessing contacts but how to get the id of SenderName who is
not in contact?

How to get SenderId either by using redemption or not??

Thanks
Anushya

Nov 15 '05 #3

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

Similar topics

3
2113
by: Anushya | last post by:
Hi All developing an addin using redemption in .net. Can anybody say how to find whether the mail item i am accessing is sent item or inbox mail item. The mail items can be in anyfolder(pls dont ask me to check for the folder name). Thanks
1
2560
by: Anushya | last post by:
Hi All developing an addins for outlook in .net. Consider the following scenario if i reply to a mail 'x' in my inbox. 1)Is there any way to identify a mailitem 'y' in sent item, is reply of the mail 'x' in my inbox. 2)And also can i find the mail item in 'sent item' is reply/forward to
7
3308
by: Anushya | last post by:
Hi How to get the id of a name in contact items in outlook. How to do it thru redemption in .net?? i tried the code below. but it shows the error. pls have a look at the code Microsoft.Office.Interop.Outlook.NameSpace oNs; oNs = Connect.oApplication.GetNamespace("MAPI"); //it shows an error here - invalid cast exception
0
326
by: Anushya | last post by:
Hi I ma trying to get mailid of the 'from' address in .NET. When i try to access mailitem i could only see 'senderName' available both in Outlook mailitem and Redemption. No senderid. Tried accessing contacts but how to get the id of SenderName who is not in contact? How to get SenderId either by using redemption or not??
0
1602
by: Anushya | last post by:
Hi Sorry for disturbing again and again. i need all the from, to, cc in terms of id and not Name. But when i try to access from/to/CC of mailitem(Both thru Outlook and Redemption), i get Names instead of ID. Could get the senderID thru Redemption.SafeMailItem.Sender.Address. But how to get the id of To and CC(recepients)??
4
19336
by: John | last post by:
Hi Does anyone have a vb.net example of how to use redemption to send mail through outlook? Many Thanks Regards
8
8822
by: John | last post by:
Hi I am using the latest redemption. I am using the below code in vb.net to send mail in html format. The problem is that text does not get sent as html and html tags appear as they are in the message like '<HTML>' etc. Any idea what I am doing wrong? Thanks Regards
2
2458
by: Pieter | last post by:
Hi, I'm using a thight integration with Outlook 2003 (with an Exchange server) in my VB.NET (2005) application. Until now I'm using the Outlook Object Model, but it appears to be very slow, and has some problems: - doing a Move changes the ReceivedTime of the MailItem - I can't use RichText in the MailItem.Body (only allows plain text or HTML) - some other stuff like having to use small 'tricks' to show the default signature in an email
0
9980
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10830
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10925
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10468
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8018
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7172
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5855
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6061
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3283
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.