Discussion Locked

DOS Command line to autoy send e-mail

0 helpful
11 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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?

11 replies

by syscokid

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:?cc=&bcc=&subject=&body=
Where the following variable definitions apply:
Variable Field Entry
--------------------------------------------------------------
e-mail address to appear in the To field
e-mail address to appear in the CC field
e-mail address to appear in the BCC field
text to appear in the Subject field
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."

by sagager

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

by mdn

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

by magasvs

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

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

This discussion is closed to new replies.