In Google App Scripts to process a list of email messages in my inbox. From the messages I need to get the from and to addresses of each message. When I use the message.getFrom() method to get the from address it returns something like this: "FirstName LastName ". But, what I want is the plain email address: "email@domain.com" I can't find a method on the GmailApp object, or the Message object, that would return just this information.
getFrom() returns a simple string, not an address object that can be dissected further. Am I missing something?