d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Using Putty To Send Email From Server > How To Add Subject?
Add Reply New Topic New Poll
Member
Posts: 18,969
Joined: Aug 16 2007
Gold: 16,089.87
Sep 19 2013 03:07pm
How do I add subject using putty?

Basic summary:
In this homework assignment, you will get to play directly with a protocol by connecting
to a specific SMTP mail server via the application telnet to send yourself an email.
In this case, you are authorized to connect to a specific mail server for the purpose of
sending an email from a legitimate email address belonging to you to your student email address..


I can send my self an Email, now the problem is, how would I happen to send my self the email with a "subject" line and "to" lines?
Thanks for your help :)

It should be an easy command I'm guessing, where would it go in the gist of this?

Code
* Login server
* Mail From
* Rcpt to
* Data
* Quit


This post was edited by Trev on Sep 19 2013 03:09pm
Member
Posts: 18,969
Joined: Aug 16 2007
Gold: 16,089.87
Sep 19 2013 03:41pm
Nevermind, figured it out with this website :) Told me everything!
http://www.expta.com/2010/03/how-to-use-telnet-to-send-smtp-email-to.html
Member
Posts: 10,812
Joined: Oct 15 2009
Gold: Locked
Warn: 20%
Sep 19 2013 04:34pm
just adding my 2 cents, sometimes you might have trouble with LF and CR characters between different os's. I remember having this problem more than once, but can't quite remember the details.
Member
Posts: 16,144
Joined: Mar 27 2008
Gold: 14,618.00
Sep 19 2013 06:30pm
Quote (Azrad @ 19 Sep 2013 23:34)
just adding my 2 cents, sometimes you might have trouble with LF and CR characters between different os's. I remember having this problem more than once, but can't quite remember the details.

windows: lf + cr
linux: cr

so if you look on a windows computer at files that are created under linux, everything is on one line. if you use notepad++ though, everything is ok. that's why the normal notepad and other tools are crappy ;)
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Sep 19 2013 09:21pm
Quote (Richter @ Sep 19 2013 07:30pm)
windows: lf + cr
linux: cr

so if you look on a windows computer at files that are created under linux, everything is on one line. if you use notepad++ though, everything is ok. that's why the normal notepad and other tools are crappy  ;)


I don't think this is the case for vi/vim, of course I then open them with notepad++ on my Window's pc
Member
Posts: 16,144
Joined: Mar 27 2008
Gold: 14,618.00
Sep 20 2013 06:10am
Quote (0n35 @ 20 Sep 2013 04:21)
I don't think this is the case for vi/vim, of course I then open them with notepad++ on my Window's pc

i recommend gvim, its vim for windows :)
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll