Email footer text.
Are you reading the email text to a string?
Regards,
Karthik Byggari
3 Likes
this is a default message using smtp connection.
Okay. Then do the following.
Consider your email body is in a string strEmailText
Using string manipulation, you can remove the standard text.
I am adding a check to extract only if the body of the email contains standard text.
Find Index of where standard text begins.
indexOfStandardText = strEmailText.IndexOf("Esta mensagem, incluindo")
Remove standard text only if you index is greater than zero.
strEmailText = strEmailText.SubString(0, indexOfStandardText-1)
Regards,
Karthik Byggari
5 Likes
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.