ignore * unignore from to replay-to date subject user-agent x-mailer content-type content-transfer-encoding
set charset="utf-8" set assumed_charset="iso-2022-jp:euc-jp: shift_jis:utf-8" set attach_charset="iso-2022-jp:euc-jp: shift_jis:utf-8" set send_charset="us-ascii:iso-8859-1:iso-2022-jp:utf-8"
set folder="imaps://(自分のGmailアドレス)@imap.gmail.com" set imap_user="(自分のGmailアドレス)" # set smtp_url="smtps://(自分のGmailアドレス)@smtp.gmail.com" # Sendgridに変更→.msmtprc set spoolfile="imaps://(自分のGmailアドレス)@imap.gmail.com/INBOX" send-hook . 'my_hdr From: (自分のGmailアドレス)'
set uncollapse_jump=yes set edit_headers=yes set implicit_autoview=yes set move=no
set editor="/usr/bin/vim" set realname="(送信者の名前)" set sendmail="/usr/bin/msmtp -a (後述の.msmtprcに記載する「account」名)"
設定(~/.msmtprc)
Sendgridを使用しています
1 2 3 4 5 6 7 8 9 10 11
account (任意) host smtp.sendgrid.net port 587 user (Sendgridアカウント) password (Sendgridパスワード) from (Fromアドレス) tls on tls_starttls on tls_certcheck off auth on logfile ~/.msmtp.log