Solved

Sending e-mail on a WebSite win95 machine

Posted on 1998-05-28
3
169 Views
Last Modified: 2010-03-04
I know how to send e-mail with perl on a unix machine, but I have to write a script now which runs on a Windows 95 machine (running WebSite making it a server).  How do I do it?  Is there a library somewhere I can get for free that will allow me to do it?  And if so how do I use it?
0
Comment
Question by:jbirk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Accepted Solution

by:
adrianward earned 50 total points
ID: 1206523
AFAIK, Win95 does not provide any sendmail clone or equivalent. You could use telnet to connect to a smarthost on port 25 and send the SMTP commands by hand... but for some reason the version of Telnet that comes with Win95 doesn't like doing this. If you find a text-only telnet program, you could do it like this:

open MAIL,"|telnet mail.compuserve.com 25";
print MAIL "HELO (put your server IP address here)\n";
print MAIL "MAIL FROM: (put your email address here)\n";
print MAIL "RCPT TO: (put recipient address here)\n";
print MAIL "SUBJECT: (put subject here)\n";
print MAIL "DATA\n";
print MAIL "Put your mail data here. You need to include\n";
print MAIL "appropriate to: and from: headers (as well as those\n";
print MAIL "used above). To mark the end of your email\n";
print MAIL "data use a period on a line by itself.\n";
print MAIL "\n.\n";
print MAIL "QUIT\n";
close MAIL;

That *should* work. Note, I used mail.compuserve.com because I know that can be used as a smarthost, but really it should be your ISP's mail smarthost. They'll be able to help you there.

Hope this is some help

0
 
LVL 8

Author Comment

by:jbirk
ID: 1206524
Any ideas where I can find such a telnet program??
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question