Reputation: 13
When I use the MS Graph API to reply to emails, it automatically adds the quoted text to the reply email from previous emails in the email thread. Is there a way to accomplish this with the Gmail API or can it only be done by manually adding it? This would be using the GmailService API in Ruby: https://googleapis.dev/ruby/google-api-client/v0.34.1/Google/Apis/GmailV1/GmailService.html.
Here's some code of how I was doing it:
gmail_service = Google::Apis::GmailV1::GmailService.new
message = Google::Apis::GmailV1::Message.new(raw: raw_mail, thread_id: thread_id)
response = gmail_service.send_user_message(API::Google::USER_ALIAS, message)
Upvotes: 0
Views: 71