General discussion

Locked

DOS Command line to autoy send e-mail

By sagager ·
I want to send an e-mail message using a DOS batch file. I've seen the command before, but have no clue where.
The command allowed me to send a message including the recipints name and also a file attachment.
Something that looked like:
"mailto:user@isp.com attach file c:\config.sys"
Any hints anybody?

This conversation is currently closed to new comments.

11 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

DOS Command line to autoy send e-mail

by SyscoKid In reply to DOS Command line to autoy ...

Well, according to Microsoft KB article you can set up a message using a command line, but you can't actually run it in a batch file. You CAN use it in a desktop shorcut, for instance.

"In order to create a preformatted and preaddressed email message it is necessary to build a command line string with the following parameters:
mailto:<to email>?cc=<cc email>&bcc=<bcc mail>&subject=<subject
text>&body=<body text>
Where the following variable definitions apply:
Variable Field Entry
--------------------------------------------------------------
<to e-mail> e-mail address to appear in the To field
<cc mail> e-mail address to appear in the CC field
<bcc mail> e-mail address to appear in the BCC field
<subject> text to appear in the Subject field
<body text> text to appear in the Body of the message
Note the position of the question mark and ampersand characters in the command line syntax.

In addition to the field designations, you must use ASCII hexadecimal equivalents as variables for punctuation characters. The following variables are used to represent commonly used characters:
Space ( ) %20 Comma (,) %2C
Question Mark (?) %3F
Period (.) %2E
Exclamation Point (!) %21
Colon (:) %3A
Semicolon ( %3B
(NOTE: I found this not to be necessary w/OL97 and 2K).

This command line string may be used in the following implementations:

In the Open box of the Start, Run command line.

In Properties of a Desktop shortcut.

In the Address Bar of Internet Explorer 4.0.

In the body ofan Outlook Express e-mail message.

In the HTML code of a Web page."

Collapse -

DOS Command line to autoy send e-mail

by SyscoKid In reply to DOS Command line to autoy ...

Sorry, here's that full article:

http://support.microsoft.com/support/kb/articles/Q181/9/91.ASP?LN=EN-US&SD=gn&FR=0

Collapse -

DOS Command line to autoy send e-mail

by SyscoKid In reply to DOS Command line to autoy ...

And as you notice, there's no mention of including an attachment.

Collapse -

DOS Command line to autoy send e-mail

by sagager In reply to DOS Command line to autoy ...

Poster rated this answer

Collapse -

DOS Command line to autoy send e-mail

by sagager In reply to DOS Command line to autoy ...

Thanks for the help.
So looks like my problem will not be solved that easy.
What I'm actually trying to do is for a Win98SE Workstation notify me automatically by e-mail of a backup performed sucessfully. The software my client is using does not allow to do it.
What I'm basic trying to do is attached the log file of the software to know if it was performed successfully.
Thanks anyway

Collapse -

DOS Command line to autoy send e-mail

by sagager In reply to DOS Command line to autoy ...

Poster rated this answer

Collapse -

DOS Command line to autoy send e-mail

by mdn In reply to DOS Command line to autoy ...

Seach for a program called Blat. I think this will do what you want. If you cannot find it. Email me and I will send it to you.
mdn@stowers-institute.org

Collapse -

DOS Command line to autoy send e-mail

by sagager In reply to DOS Command line to autoy ...

Thanks. The BLAT software works and fit like a GLOVE

Collapse -

DOS Command line to autoy send e-mail

by magasvs In reply to DOS Command line to autoy ...

You can use the Back offices Resourse Kits utility MAPISEND.EXE. It looks like this:

\MAPISEND.EXE -u username -p password -i -r mail_to -s subject -m text -f path_of_attach

Collapse -

DOS Command line to autoy send e-mail

by sagager In reply to DOS Command line to autoy ...

Poster rated this answer

Back to Software Forum
11 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums