def gmail_email(self, from_, to, msg):
logging.debug('<STR_LIT>')<EOL>smtpConn = smtplib.SMTP('<STR_LIT>', <NUM_LIT>)<EOL>smtpConn.ehlo()<EOL>smtpConn.starttls()<EOL>login_response = smtpConn.login(self._credentials['<STR_LIT>'], self._credentials['<STR_LIT>'])<EOL>if isinstance(msg, email.message.Message):<EOL><INDENT>logging.debug('<STR_LIT>')<EOL>msg['<STR_LIT>'] = from_<EOL>if isinstance(to, str):<EOL><INDENT>to = [to]<EOL><DEDENT>for x in to:<EOL><INDENT>msg['<STR_LIT>'] = x<EOL><DEDENT>msg = msg.as_string()<EOL><DEDENT>else:<EOL><INDENT>msg = str(msg)<EOL><DEDENT>logging.debug(msg.replace('<STR_LIT:\n>', '<STR_LIT:U+0020>'))<EOL>response = smtpConn.sendmail(from_, to, msg)<EOL>logging.info('<STR_LIT>'.format(response))<EOL>smtpConn.quit()<EOL>return response<EOL>
Send an email from your `gmail`_ account.

.. _gmail: https://mail.google.com/

msg can either be:

* A string, in which case:

    * At the first newline (\\n) the string will be split into subject and body
    * If no newline is present, the entire string will be body.

* An `email.message.Message`_ object

.. _email.message.Message: https://docs.python.org/3/library/email.message.html

Login will be performed using stored credentials.

* *stored credential name: GMAIL_EMAIL*
* *stored credential name: GMAIL_EMAIL_PASSWORD*

:param string from_: The phone number in your twilio account to send the SMS message from. Full international format.        
:param string to: The email address to send the email to.
:param body: The content of the email. See above.