Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Need a simple way to send an email w/ attachment thru DOS

Jun 17, 2005 7:01AM PDT

The title says it all:

Does anyone know a simple way to send an email with an attachment through DOS? It doesn't need dialing support, as the computer is on DSL. The message will go to a single recipient, and will have a small spreadsheet attached. I need something that can run entirely from a command line (batch file).

I've been Googling with no luck. Help please!!

Thanks,
Ryan

Discussion is locked

- Collapse -
Try...
Jun 17, 2005 7:20AM PDT

One issue is that DOS will not cut it since I haven't seen DOS TCPIP support in years. I'll take it meant the COMMAND LINE under Windows.

Try ->


SENDMAIL -u profile name -p password -r recipient(s) [-c copy recipient(s)] [-s subject] [-
m message] [-f file attachment(s)] [-v] [-?]


For a full description of the use of the Sendmail utility, see "Using the Command Line Mail Sender" in the Microsoft Exchange Resource Kit. In addition, check the article in the Microsoft Knowledge Base, "Using the SENDMAIL.EXE Utility with the AT Scheduler," Q151670.


Bob

- Collapse -
Thanks, sounds good.
Jun 17, 2005 7:30AM PDT

Sounds about what I'm looking for. I'll check it out...

Ryan