English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

So... I installed an SMTP program (surgeMail) on my computer so that I can send email using myself as the outgoing server. I plan to prank my friend by sending him a fake email. I understand the whole SMTP protocol and commands and what not, but I'm hoping to find an easier way then typing everything in manually in telnet. I've found that if you make a typo... it's irreversible. Is there a way I can write a batch file or some other sort of script file to make this easier? What about in C#? Is there an easy way to do it that way? I know I could use sockets, but I'm hoping for something a bit easier/user-friendly. Any ideas?

Note: It successfully sends the email when I manually type it in error-free in telnet (telnet localhost 25). I'm trying to remove the possibility of error by having everything pre-typed and programmatically feed the commands to telnet.

2007-10-04 04:34:55 · 3 answers · asked by coreyog 3 in Computers & Internet Programming & Design

Please nobody waste my time trying to explain the unethical parts of my prank. I can't use Outlook Express or anything because that implies that I actually have access to the email address I'm sending from. By using telnet, I can send from ANY email address, including my own, somebody else's, or one that doesn't even exist, to ANY email address. I can't set it up using normal email applications.

2007-10-04 04:46:39 · update #1

3 answers

Why don't you just use a mail client, like Outlook Express or Thunderbird and configure it to connect to your local SMTP service? That way you can write the email like normal people do?

Also realize your "prank" email is likely going to be flagged as major spam due to your haphazard setup, and your friend may never see it.

2007-10-04 04:40:03 · answer #1 · answered by It's the hair 5 · 0 2

You dont need telnet. You can use smtp commands in a script. Such as:

echo "To:MyBud@example.com" > MAIL_TMP
echo "From: NotMe@example.net" >> MAIL_TMP
echo "Subject: Ha Ha >> MAIL_TMP
cat BodyofMessage.txt >> MAIL_TMP

/usr/sbin/sendmail -F "NotMe" -t notme@example.net < MAIL_TMP


of course the smtp client server you are running has to be told that its ok to send as that domain. The default setups have gotten really picky about such things in order to protect against outside abusers.

2007-10-05 06:05:53 · answer #2 · answered by Gandalf Parker 7 · 1 0

echo- not working. as telnet executes no furthe echo

2016-04-07 03:42:28 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers