Solved

Sending e-mail on a WebSite win95 machine

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SIMPLE Perl Regex 1 159
Regular Expression question to filter with negation. 6 96
Perl tar error 8 66
Perl File::Find alternative 1 69
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…

809 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