command line e-mail HELP

General software, Operating Systems, and Programming discussion.
Everything from software questions, OSes, simple HTML to scripting languages, Perl, PHP, Python, MySQL, VB, C++ etc.
Post Reply
grantdn
New Member
Posts: 3
Joined: Thu Feb 17, 2005 6:01 am

command line e-mail HELP

Post 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
User avatar
TonyT
SG VIP
Posts: 10356
Joined: Fri Jan 28, 2000 12:00 am
Location: Fairfax, VA

Post 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" 
No one has any right to force data on you
and command you to believe it or else.
If it is not true for you, it isn't true.

LRH
User avatar
therealcableguy
Advanced Member
Posts: 572
Joined: Tue Oct 10, 2000 12:00 am
Location: Kansas City

command line email

Post 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.
The brave man is not he who feels no fear, For that were stupid and irrational; But he, whose noble soul its fears subdues, And bravely dares the danger nature shrinks from.
-Joanna Baille
cyberskye
Senior Member
Posts: 4717
Joined: Wed Jan 10, 2001 12:00 am
Location: DC

Post 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.
anything is possible - nothing is free

:wth:
Blisster wrote:It *would* be brokeback bay if I in fact went and hung out with Skye and co (did I mention he is teh hotness?)
:wth:
User avatar
Paft
SG Elite
Posts: 5785
Joined: Tue Feb 20, 2001 12:00 am
Location: Richmond VA

Post by Paft »

cyberskye wrote:How does this enable file attachments?
http://www.faqs.org/rfcs/rfc822.html -- Try that.
So trade that typical for something colorful, and if it's crazy live a little crazy!
Post Reply