Steps to reproduce
Set a proper test date to match a contact having a photo in Google Contacts and run test
Expected behavior
email should contain the photo from contacts.
Current behavior
email uses default profile image as contact in question has probably no public photo.
Context
- Version of the script: 5.0.0
Possible solution
I suggest to read the photo from contacts. API is at https://developers.google.com/contacts/v3#retrieving_a_contacts_photo
I debugged a bit. Reading photo seems possible, but I do not fully understand what data sources get merged to have the current photo URL.
Steps to reproduce
Set a proper test date to match a contact having a photo in Google Contacts and run test
Expected behavior
email should contain the photo from contacts.
Current behavior
email uses default profile image as contact in question has probably no public photo.
Context
Possible solution
I suggest to read the photo from contacts. API is at
https://developers.google.com/contacts/v3#retrieving_a_contacts_photoI debugged a bit. Reading photo seems possible, but I do not fully understand what data sources get merged to have the current photo URL.