And*_*Geo 7 google-app-engine node.js google-api-nodejs-client google-cloud-platform
我是一名 Python 开发人员,但我现在正在从事的项目的情况迫使我在 Node.js 中找到解决方案
这是发送邮件的简单Python代码,但是,在nodejs中是否有像这样的谷歌应用程序引擎方式,而不使用像mailJet或sendGrid这样的中介服务?
def send(recipient, sender, subject, body):
isHTML=True
print("recep: "+recipient)
logging.debug(u'Sending mail {} to {}'.format(subject,
unicode(recipient)).encode(u'utf-8'))
message = mail.EmailMessage(
sender=sender,
subject=subject,
to=recipient
)
if isHTML:
message.html = body
else:
message.body = body
message.check_initialized()
message.send()
Run Code Online (Sandbox Code Playgroud)
感谢您的理解和帮助。
归档时间: |
|
查看次数: |
1418 次 |
最近记录: |