Solved

Sending e-mail on a WebSite win95 machine

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now