sending mail using perl through windows


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting sending mail using perl through windows
# 8  
Old 01-10-2006
Hi once again,

I m sorry to post another thread again, but i can't help it.

when i run my mail script, Im getting this following error:

Died at c:/Perl/site/lib/Mail/Mailer.pm line 269.
Perl script to send mail on deliver complete

but i did not recieve any mail

what does it mean by the statement Died at ........ 269, Please help me.


regards
Victor Vinod Kumar Smilie
# 9  
Old 01-10-2006
Please use a text editor with line numbering to locate line number 269. Quote the nearby lines and mark the 269th line in your post.

If the script dies, it is logical that no mail could been sent.
# 10  
Old 01-11-2006
Hi
This is the contents of Mailer.pm along with the line numbers

Quote:
260
261 # removed MO 20050331: destroyed the folding
262 # _cleanup_hdrs($hdrs);
263
264 my @to = $self->who_to($hdrs);
265
266 $self->close; # just in case;
267
268 # Fork and start a mailer
269
Code:
 (defined($exe) && open($self,"|-"))

270 || $self->exec($exe, $args, \@to)
271 || die $!;
272
273 # Set the headers
274 $self->set_headers($hdrs);
275
276 # return self (a FileHandle) ready to accept the body
277 $self;
278 }
Please do the needful...

Regards
Victor Vinod Kumar
# 11  
Old 01-11-2006
Ok. Actually lines 269-271 is one statement, so the error only says it dies there. In fact, you see that on line 271. It tries to execute the sendmail executable piped, or an error message is shown and dies.

From the rest of the module, When in 'smtp' mode, the definitions inside Mail::Mailer::smtp will be sourced in to add some new methods as well as to replace a few ones. It seems like while loading this module there are errors preventing it from loading when calling the exec() method.

Ok. Let's try this on the command line:

perl -MMail::Mailer::smtp

on your system. Anything shown (I guess there should be some)?
# 12  
Old 01-12-2006
It did not show anything when i tried giving this command:
this is the output i got ,( Blank for a long time)

C:\Documents and Settings\vinodkumars>perl -MMail::Mailer::smtp

Regards
Victor Vinod Kumar
# 13  
Old 01-12-2006
Hmm. Then the require is ok. That's strange.

Maybe I will look into it if I have time later on.
# 14  
Old 01-17-2006
Network

Hai

Will some body help me in the above problem, its very urgent....


Please ...

Regard
Victor Vinod Kumar
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Problems sending mail: Difference between Mail and Mailx?

Whats the difference between mail and mailx? I'm trying to troubleshoot a problem where I can send mail from server A with this `echo $MESSAGE | mail -s "$SUBJECT" -r $FROM $RECIPIENTS` command but executing the same command from server B throws me this error (Both servers are RHEL) ... (1 Reply)
Discussion started by: RedSpyder
1 Replies

2. Shell Programming and Scripting

sending mail in perl.. No errors and also no output

Hi folks, I am trying to send an email in Perl script with the below code. I have written the code in Padre IDE and installed all the required modules(Mail::Sendmail) and executed the code. It is neither showing errors nor giving the output. I havnt received an mail after running the below... (1 Reply)
Discussion started by: giridhar276
1 Replies

3. Shell Programming and Scripting

Stop sending mail after certain number of mail

Hi guys... I am busy writing a script to notify me via an mail if my application is down. I have done that. Now I want this script to stop sending mails after five mails were sent but the script should keep on checking the application. When the application is up again that count should be... (5 Replies)
Discussion started by: Phuti
5 Replies

4. Shell Programming and Scripting

Perl: Sending file from UNIX server to Windows server

I'm trying to write a Perl script where a file from a UNIX server box connects to a Windows server box and copies that file into the Window box. The main problem I have right now is that whenever I try to connect to the Windows box, the connection is refused. The error message that always pops... (2 Replies)
Discussion started by: kooshi
2 Replies

5. UNIX for Dummies Questions & Answers

Need help configuring Active Perl on Windows Vista.: Perl Scripting on Windows

Hi All, Need help configuring Active Perl on Windows Vista. I am trying to install Active Perl on Windows Vista. The version of Active Perl i am trying to install is : ActivePerl 5.10.1 Build 1006 After installing it through cmd, When i try to run perl -v to check the version, i get the... (2 Replies)
Discussion started by: Vabiosis
2 Replies

6. UNIX for Dummies Questions & Answers

sending mail

i want to send an email from the unix machine to the windows machine. now windows dont have any specified folder for the mail. mail has to be sent to the email-id like abc@xyz.com unix machine itself can not directly send mail. it has to be transferred via mail server. (11 Replies)
Discussion started by: parmeet
11 Replies

7. Shell Programming and Scripting

sending mail from perl using mailx

hi All, i am trying to send a mail from perl using mailx. the script runs fine if i hard code the file path which is to be attached to the mail. but when i give a variable containing the path of the file , perl is not able to send the file. ex: system('uuencode /attach/test.txt... (3 Replies)
Discussion started by: adityamahi
3 Replies

8. Ubuntu

help sending mail

Hi, I have kubuntu 8.10 and I would like to configure Ubuntu to can send mail from command line with mailx. I've saw that I need to install a MTA. But I don't know with install and how. Do you know some howto or url where I find how could I configure it? Many thanks and sorry for my... (2 Replies)
Discussion started by: mierdatuti
2 Replies

9. HP-UX

hp ux not sending mail

Hi.. In Hp ux box,, mails are not being sent. they are getting queued up in mail queue. (3 Replies)
Discussion started by: kkhan
3 Replies

10. UNIX for Dummies Questions & Answers

sending a mail to a mail client

Hi everyone! I'm trying to create a database monitoring script that reads an alert file and sends an error message if it can 'grep' a particular string. Is there a way to send this message to a mail client using SMTP? Even better, is there any place on this site that has these kinds of... (5 Replies)
Discussion started by: solaris73
5 Replies
Login or Register to Ask a Question