[英]Need help in triggering emails from an AKS k8s pod
I am trying to trigger an email from a Kube.netes pod using mutt.我正在尝试使用 mutt 从 Kube.netes pod 触发 email。
I deployed a sample pod on the AKS cluster我在 AKS 集群上部署了一个示例 pod
echo "test email" | mutt -e "set smtp_url=smtp://<url>" -e "set_from=<user email>" -s "test email" <sender address>
from the AKS pod, I have connectivity to our SMTP server and can te.net to that server too.从 AKS pod,我可以连接到我们的 SMTP 服务器,也可以通过 te.net 连接到该服务器。
te.net smtpserver 25 --> Connects from the pod te.net smtpserver 25 --> 从 pod 连接
The above mutt command neither sends emails nor throws any error to troubleshoot.上面的 mutt 命令既不发送电子邮件也不抛出任何错误以进行故障排除。 can someone recommend the best way to send email from an AKS pod?
有人可以推荐从 AKS pod 发送 email 的最佳方法吗?
From the pod we have several ways to sending am emails.从 pod 中,我们有几种发送电子邮件的方法。
with reference of existing thread [# Sending email from a kube.netes pod ]( Sending email from a kube.netes pod )参考现有线程 [# Sending email from a kube.netes pod ]( Sending email from a kube.netes pod )
with reference to your code, sending email from a Kube.netes pod using mutt.参考您的代码,使用 mutt 从 Kube.netes pod 发送 email。 refer this blog .
参考这个博客。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.