Outlook to read emails and automate to do some work

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I want to know how can I write a macro in Microsoft Outlook to read emails
from a specific user, and when the email comes, I want to search for a
specific button or link in the email's body; then it automatically clicks
that link or button. After clicking the button the email should go into
delete folder and the other mails are read same way.
Please help me. You can also email me on (e-mail address removed)
 
Use the MAPIFolder.Items.ItemAdd event for the Inbox to trap incoming
e-mails, and use MailItem.SenderEmailAddress or MailItem.SenderName to detect
messages from a specific person within that event. It's up to you though to
parse the MailItem.HTMLBody property to look for specific <A> tags with URLs.
However, you will not be able to trap when the user clicks on a link in an
e-mail.
 
Back
Top