LoginSignup
1
0

More than 1 year has passed since last update.

telnetでワンライナーでメール送信する

Posted at
{
    sleep 0.3;
    echo 'EHLO';
    sleep 0.3;
    echo 'MAIL FROM: <送信元メールアドレス(EnvelopFrom)>';
    sleep 0.3;
    echo 'RCPT TO: <送信先メールアドレス>';
    sleep 0.3;
    echo 'DATA';
    sleep 0.3;
    echo -e 'From: <送信元メールアドレス>\n\n'
    echo -e 'Subject: This is Test Subject.\n\n'
    echo -e 'This is Test Body.\n'
    echo '.'
} | telnet localhost 25

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0