Postman 主要是一款接口調試與測試工具,并非專門用于群發郵件的工具,且其并不直接支持在 Debian 系統上通過 Postman 進行郵件群發。不過,我可以為你提供在 Debian 系統上群發郵件的其他方法:
sudo apt-get install exim4
sudo dpkg-reconfigure exim4-config
選擇使用 SMTP 直接發信。
編輯配置文件:
/etc/exim4/passwd.client
:添加 SMTP 賬號密碼。
/etc/email-addresses
:添加系統郵箱地址。
重新啟動 Exim4 服務:
sudo /etc/init.d/exim4 restart
echo "This is a test" | exim4 -t recipient@example.com
sudo apt-get install sendmail
編輯 /etc/mail/sendmail.cf
文件,添加外部郵件服務器的主機名。
sudo /etc/init.d/sendmail restart
echo "This is a test" | sendmail -v recipient@example.com
sudo apt-get install mailutils
echo "郵件內容" | mail -s "郵件主題" 收件人郵箱地址
sudo apt-get install mailx
echo "郵件內容" | mailx -s "郵件主題" 收件人郵箱地址
sudo apt-get install mutt
echo "郵件內容" | mutt -s "郵件主題" 收件人郵箱地址
sudo apt-get install ssmtp
雖然 Postman 本身不支持批量發送郵件,但你可以使用其集合功能來組織和保存多個請求,然后一次性發送它們。
請注意,使用這些方法發送郵件時,需要確保遵守相關郵箱服務的使用條款和政策,避免違反規定導致郵件發送失敗或被封禁。如果需要更復雜的郵件群發功能,建議使用專門為此目的設計的工具或服務。