can a emailId add into contactlist with checking the subject line

G

Guest

I want to add this sender person's email id into a particular contact list
when a mail with come from him with a particular subject line.
 
G

Guest

This sounds like a one-time operation, so I don't see why you need a rule to
do this.
If you want to create a Contact based on a e-mails sender name and e-mail
address, simply right-click their display name in the message header and
select "Add to Outlook Contacts...".

BTW, this forum is supposed to be dedicated to issues around customizing
Outlook forms. There are microsoft.public.outlook.general and
microsoft.public.outlook.contacts groups you can use for similar questions.
 
G

Guest

Hi Eric,
Thanks for ur email. The actual scenario is as follows:
I am sending a mail to around 10000 in my organisation and when anyone
replies to this mail with same subject line, this person shd included in a
distribution list. i dont have the mail Ids of the persons who is replying to
this mail.

I wants to create a distribution list based on the replies of this mail so
that i can communicate to the respective group for further communication.

Thanks & Regards,
+Naren
 
G

Guest

This can be done, but it's certainly a little involved.

You can get a handle to an e-mail you receive with
ActiveInspector.CurrentItem (for an open e-mail). The MailItem.Recipients
collection will contain the sender of the e-mail along with yourself - check
the Recipient.Type property and look for olOriginator as the value for the
sender's Recipient object.

You can then use the DistListItem object to create
(Application.CreateItem(olDistributionListItem)) or retrieve
(MAPIFolder.Items("DistributionListName"))
a Distribution List. Then use the DistListItem.AddMember(Recipient) method,
passing in the sender's Recipient object.

There's oodles of sample code for these objects, properties and methods in
the Outlook VBA Help file. Let me know if you need further assistance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top