Subject: | |
From: | |
Reply To: | |
Date: | Thu, 20 Jan 2000 09:00:56 -0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Steve Viertell wrote:
>
> It's possible to Telnet to port 25 of a SMTP server and send mail with a command line...I would like to incorporate that functionality into a UDC (or command file). It's easy to do this to send a simple email...
>
> Telnet servername.domain 25
> helo
> mail from:username@domain
> rcpt to:tousername.domain
> data
> "message goes here"
> quit
>
> Question - how would/could this be used to attach a file from the MPE file system to the email?
>
> If anyone has done this, I'd sure like to talk to them instead of re-inventing the wheel...
Unfortunately it ranges from tricky to impossible to have a script successfully
and reliably drive a telnet session using a general purpose telnet command.
You really need to be using software designed to speak SMTP, and several
freeware and commercial packages are available on MPE.
My freeware favorite (because I ported it :-)) is Sendmail/iX, available from:
http://www.bixby.org/mark/sendmailix.html
Near the bottom of that page under "How to Run / A Programmatic Example" is a
link to my mailspf CI command file, which e-mails spoolfiles as MIME
attachments. If the mail software you end up with doesn't directly support
attachments, you could probably adapt my mailspf command file to work with it.
- Mark B.
PS: IIRC (and apologies if I'm omitting somebody), my Sendmail/iX package may
be the only freeware mail solution that gives you the ability to *receive*
e-mail on your 3000 as well as send it.
|
|
|