Hi all,
I need to create a macro to reply to Outlook mails with the same emails received but changing a few things:
1.- I need to extract the .To information from the email body. At the moment I only get ONE email address:
Code:
I need to extract all emails from the text and add all those emails to the .To section of the reply.
2.- After point 1 the macro needs to remove the first few lines of the email body. From the words "CONFIRMATION MAIL" to "Good Morning". I get the position for those two strings but I have no idea about how to remove that part of the body before I send the reply.
Could anyone help me? I think this should be easy for a senior developer.
Thank you in advance.
I need to create a macro to reply to Outlook mails with the same emails received but changing a few things:
1.- I need to extract the .To information from the email body. At the moment I only get ONE email address:
Code:
Code:
If InStr(1, vText(i), "@") Then
sText = Replace(vText(i), "mailto:", "")
I need to extract all emails from the text and add all those emails to the .To section of the reply.
2.- After point 1 the macro needs to remove the first few lines of the email body. From the words "CONFIRMATION MAIL" to "Good Morning". I get the position for those two strings but I have no idea about how to remove that part of the body before I send the reply.
Could anyone help me? I think this should be easy for a senior developer.
Thank you in advance.