MCPcopy Index your code
hub / github.com/webpy/webpy / send_with_aws

Method send_with_aws

web/utils.py:1541–1553  ·  view source on GitHub ↗
(self, message_text)

Source from the content-addressed store, hash-verified

1539 self.default_email_sender(message_text)
1540
1541 def send_with_aws(self, message_text):
1542 try:
1543 from . import webapi
1544 except ImportError:
1545 webapi = Storage(config=Storage())
1546
1547 import boto.ses
1548
1549 c = boto.ses.SESConnection(
1550 aws_access_key_id=webapi.config.get("aws_access_key_id"),
1551 aws_secret_access_key=webapi.config.get("aws_secret_access_key"),
1552 )
1553 c.send_raw_email(message_text, self.from_address, self.recipients)
1554
1555 def send_with_smtp(self, message_text):
1556 try:

Callers 1

sendMethod · 0.95

Calls 2

StorageClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected