Solved

Sending e-mail on a WebSite win95 machine

Posted on 1998-05-28
3
168 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
 

Expert Comment

by:adrianward
ID: 1206525
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Perl - Mawk 2 108
problem with using the glob function 1 84
ppm conversion to curl on a module install 8 90
parse a file and get data out 11 138
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…

734 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