144 """ |
144 """ |
145 Private slot to show some help text "how to turn on the Gmail API". |
145 Private slot to show some help text "how to turn on the Gmail API". |
146 """ |
146 """ |
147 if self.__helpDialog is None: |
147 if self.__helpDialog is None: |
148 try: |
148 try: |
149 from E5Network.E5GoogleMail import GoogleMailHelp |
149 from EricNetwork.EricGoogleMail import GoogleMailHelp |
150 helpStr = GoogleMailHelp() |
150 helpStr = GoogleMailHelp() |
151 except ImportError: |
151 except ImportError: |
152 from E5Network.E5GoogleMailHelpers import getInstallCommand |
152 from EricNetwork.EricGoogleMailHelpers import getInstallCommand |
153 helpStr = self.tr( |
153 helpStr = self.tr( |
154 "<p>The Google Mail Client API is not installed." |
154 "<p>The Google Mail Client API is not installed." |
155 " Use <code>{0}</code> to install it.</p>" |
155 " Use <code>{0}</code> to install it.</p>" |
156 ).format(getInstallCommand()) |
156 ).format(getInstallCommand()) |
157 |
157 |
385 Private method to actually send the message via Google Mail. |
385 Private method to actually send the message via Google Mail. |
386 |
386 |
387 @param msg email message to be sent |
387 @param msg email message to be sent |
388 @type email.mime.text.MIMEBase |
388 @type email.mime.text.MIMEBase |
389 """ |
389 """ |
390 from E5Network.E5GoogleMail import E5GoogleMail |
390 from EricNetwork.EricGoogleMail import EricGoogleMail |
391 |
391 |
392 if self.__googleMail is None: |
392 if self.__googleMail is None: |
393 self.__googleMail = E5GoogleMail(self) |
393 self.__googleMail = EricGoogleMail(self) |
394 self.__googleMail.sendResult.connect(self.__gmailSendResult) |
394 self.__googleMail.sendResult.connect(self.__gmailSendResult) |
395 |
395 |
396 self.__googleMail.sendMessage(msg) |
396 self.__googleMail.sendMessage(msg) |
397 |
397 |
398 @pyqtSlot(bool, str) |
398 @pyqtSlot(bool, str) |