Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1063997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:51:56+00:00 2026-05-16T18:51:56+00:00

I run ActiveState’s ActivePerl on my Windows 7 box. I just installed the MIME::Lite

  • 0

I run ActiveState’s ActivePerl on my Windows 7 box. I just installed the MIME::Lite module using the PPM (Perl Package Manager). The installation went fine.

However, as I try to run a very simple script

use strict;
use MIME::Lite;

my $msg = MIME::Lite->new(
        From     => 'myname@host.com',
        To       => 'myname@host.com',
        Subject  => "Mail Test",
        Data     => "Test Test!!",
    );
$msg->send;

I got this error:

SMTP Failed to connect to mail server: at C:\...\mail_test.pl line 10

Does that mean I need to install a 3rd party mail server on my windows? Or can I configure the script and/or windows to make it work without new installation? In particular, I do not run outlook on that machine. Thx!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T18:51:56+00:00Added an answer on May 16, 2026 at 6:51 pm

    You need to give it a host to send the mail through, otherwise its going to try and use the SMTP server on your computer which A) you don’t have and B) if its a home computer many would reject it as spam anyway.

    The MIME::Lite documentation shows how to tell it what SMTP host to use. Set it up with the same host, username and password as you would your normal mail client.

    Unfortunately, MIME::Lite doesn’t support encryption so your mail will be going out insecure and in the clear. Some mail servers won’t even talk unencrypted any more. Email::Sender I believe is what the email folks recommend you use these days.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using ActiveState Perl and using PPM for installing modules. I run the
I work with Activestate Perl on Windows and Apache. I want to run my
I have downloaded and installed locally on my Ubuntu ActiveState Perl(ActivePerl-5.14.1.1401-x86_64-linux-glibc-2.3.5-294969.tar.gz). I did ~$
I have a Perl script that I'd like to run on Windows, using either
I am using Perl version 5.12.4 from active state on Windows XP(Version 5.1.2600).Installed ParseLex
I am currently using ActiveState Perl 5.14 and the R project version 2.13.2. Within
I need to set up sqllite for Perl on a Windows box. However -
I have a Perl script that is calling a program on Windows using backticks.
I have installed Strawberry Perl for Windows, DWIM Perl from: http://dwimperl.com/ . I would
I'm converting a Unix Perl script to run on Windows. I'm having a problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.