linux shell 傳送email 附件

2021-08-31 17:48:30 字數 814 閱讀 6047

方法一:傳送單個附件(正文亂碼)

mutt -s "mail subject" -a output_email.html -- [email protected]

< output_email.html

或者cat output_email.html |

mutt -s "mail subject" -a output_email.html -- [email protected]

效果截圖:

郵件正文亂碼

方法二:傳送多個附件(正文不亂碼)

# !/bin/sh from='[email protected]' to='[email protected]' email_date='' email_subject='subjest' email_content="./folder/file" email_attach="./folder/file ./folder/file2 ./folder/file3 ./folder/file4" function send_email() send_email

效果圖:

推薦**:

sending files as mail attachments

sending email with attachments on unix systems

linux自動下傳送html格式並帶附件的郵件

android Intent傳送文字email

如下 import android.content.intent import android.os.bundle import android.view.view import android.view.view.onclicklistener import android.widget.butt...

使用python傳送html格式的email

和大夥分享乙個使用python傳送html格式的email的 我用在我的軟體的bug提交中。如下。請將 中的email和密碼替換成您的email和密碼。coding cp936 send email via gmail,support html email by jibo he hejibo ues...

linux shell 傳送郵件

vim etc mail.rc 檔案尾增加以下內容 set from 1968089885 qq.com smtp smtp.qq.com set smtp auth user 1968089885 qq.com smtp auth password 123456 set smtp auth log...