new more help on setting up Perl Mail::sendmail

24 views
Skip to first unread message

jscjso

unread,
Apr 18, 2008, 7:52:51 PM4/18/08
to Perl Mail::Sendmail
Hi,

I recently purchased a new computer, it comes with Vista.
I have set up WindowMail as client in my computer to link with Gmail.
It works fine.

Then I started to write some Perl/HTML scripts with Mail::Sendmail, I
have
problem to see any mail reaching the test email address, like my Gmail
account. I think my problem is to set the right smtp path.

I checked my WindowMail setup, I have outgoing mail(SMTP) as
smtp.gmail.com.

So I used smtp.gmail.com in my Mail::sendmail Perl script as:

use strict;
use Mail::Sendmail;

my $to_list = 'xx...@gmail.com';
my $cc_list = 'xx...@gmail.com';
my $email = "\n\nThis email was generated automatically.\n";
my $MailFrom = 'xx...@gmail.com';
my $subject = "hello test";
my $message = "module test";

sendmail( Smtp => 'smtp.gmail.com', From => $MailFrom, To =>
$to_list,
Cc => $cc_list, Subject => $subject, Message => $message,);

where xxxx is my gmail email account id.

There is no error message when I execute this, but I check my gmail
account and there is no email reaching there.

My computer is hooked to Verizon internet service, I do not have any
Domain setup. My internet connection is just a regular home
connection.

Actual I have no clue what is wrong, my guess is just the smtp
setting.
Could someone give me a guidance?
Reply all
Reply to author
Forward
0 new messages