I need to extract the information from an email and then send it to my system.
I used IMAP, and everything has been successful. however, IMAP responds to me with a text that has spaces (That’s exactly how the mail is written). and apparently when I want to make the HTTP Request it gives me an error.
I have the theory that what gives error are the line breaks, and I would like to delete them, however the .replace(“\n”,“”) does not take effect.
Does anyone know how to make it work.??