Page 1 of 1

command line e-mail HELP

Posted: Thu Feb 17, 2005 9:13 am
by grantdn
Hi

Could someone please help me im trying to send an email attachment in outlook express from the dos command line,I have looked everywhere but with no luck. here is the command that i am using.

start mailto:john@john.co.za,"?subject=Hello"

this all works perfectly, i just dont know how to add an attachment to that string.
Please help.
Many thanx
Grantdn

Posted: Thu Feb 17, 2005 12:14 pm
by TonyT
I'm not sure that you can do that, for security reasons.

Code: Select all

mailto:<to>?subject=<subject>&cc=<cc>&bcc=<bcc>&body=<message_body>


<to>   The e-mail address of the recipient 
<subject>   The subject field of the message 
<cc>   The "carbon copy" e-mail address 
<bcc>   The "blind carbon copy" e-mail address 
<message_body>   The actual message, with spaces replaced by "%20" (without the quotes), carriage return/line feeds by "%0D%0A", double quotes ( " ) by "%22", single quotes ( ' ) by "%27", and backslashes by "%5C" 

command line email

Posted: Thu Feb 17, 2005 4:10 pm
by therealcableguy
You can do it via telnet.
1.go to the command line
2.type telnet
3.at the command prompt type open 'space' then "name or ip of your incoming mail server" For me its "open mail.comcast.net".
4.type user then spacebar then username of email account and hit enter
5.type pass then spacebar then password for mail account.
6.type help to see list of available commands
7.list command will show you your messages and their size. This is what I got:

+OK 16 messages (1275990)
1 9029
2 17467
3 1897
4 9027
5 5905
6 27994
7 2493
8 2894
9 7469
10 6105
11 46894
12 19324
13 1878
14 6001
15 1108470
16 3143

If I want to read one of the emails I would type retr 1 and press enter to see the contents of email number one.I think you can compose and send email also but I have not played with it enough to know.

Posted: Thu Feb 17, 2005 4:37 pm
by cyberskye
How does this enable file attachments?
therealcableguy wrote:You can do it via telnet.
1.go to the command line
2.type telnet
3.at the command prompt type open 'space' then "name or ip of your incoming mail server" For me its "open mail.comcast.net".
4.type user then spacebar then username of email account and hit enter
5.type pass then spacebar then password for mail account.
6.type help to see list of available commands
7.list command will show you your messages and their size. This is what I got:

+OK 16 messages (1275990)
1 9029
2 17467
3 1897
4 9027
5 5905
6 27994
7 2493
8 2894
9 7469
10 6105
11 46894
12 19324
13 1878
14 6001
15 1108470
16 3143

If I want to read one of the emails I would type retr 1 and press enter to see the contents of email number one.I think you can compose and send email also but I have not played with it enough to know.

Posted: Thu Feb 17, 2005 5:51 pm
by Paft
cyberskye wrote:How does this enable file attachments?
http://www.faqs.org/rfcs/rfc822.html -- Try that.