Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Sending e-mail on a WebSite win95 machine

Posted on 1998-05-28
3
Medium Priority
?
170 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 100 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
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…
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

719 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