mailmeakhila has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks, I am wrote a script to send email with html data in linux.But with windows i hope we need to configure smtp. But i have no idea of how to do it. I have read few old threads "http://perlmonks.org/?node_id=450287" but i didnt have the option specified in this node.I am using windows 7. If my below script has to work what are that i need to know and configure. What are the auth details needed. Below is my code :
my $msg = MIME::Lite->new ( Subject=>"Mime lite example", From=>'mime\@lite.com', To=>$email, Type=>'text/html', Data=>$emaildata ); $msg->send('smtp',$smtpserver,AuthUser=>$user,AuthPass=>$pass,Debug=>1 +);
Any help is much appreciated. Thank you Akhila

Replies are listed 'Best First'.
Re: Send email from windows 7
by GrandFather (Saint) on Apr 18, 2012 at 03:23 UTC

    For an unauthenticated smtp server it is as simple as calling:

    MIME::Lite->send("smtp", "smtp.your.domain.here");

    once somewhere in your script before the first time you try to send an email using $msg->send(). You may need to talk to your network administrator to find out what the URL is for your smtp server, but if you have an email application set up on the Windows 7 computer you can check the configuration options there to find the details you need.

    True laziness is hard work
      Hi I dont have an email application running on my machine. I am trying to use mail.googlemail.com to send email to my own gmail id.
        A reply falls below the community's threshold of quality. You may see it by logging in.