About Me

My photo
Working as Technical Lead in CollabNET software private limited.
Showing posts with label mail. Show all posts
Showing posts with label mail. Show all posts

Wednesday, 21 April 2010

Sending mail as different user

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 hostname SMTP Server (JAMES SMTP Server 2.2.0) ready Mon, 20 Feb 2006 14:31:33 -0500 (EST)
ehlo yourEmailAddressDomain.com
250 hostname Hello yourEmailAddressDomain.com (hostname [127.0.0.1])
mail from:
250 Sender OK
rcpt to:
250 Recipient OK
data
354 Ok Send data ending with .
subject: test to testuser at JAMESServersConfigSetting.com

test

.
250 Message received
quit
221 hostname Service closing transmission channel
Connection closed by foreign host.
#

Monday, 22 June 2009

Sending mail through command line client.

Some days back I'm in situation to test the continuous spamming of mails to my mail box.

This command did me the work

for i in `seq 1 35`; do echo "test" | mail -s test forum@email.com; done