The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Sending Email with Attachment balajiora Shell Programming and Scripting 3 05-29-2009 05:32 AM
sending an attachment through email Sgiri1 Shell Programming and Scripting 1 04-21-2009 01:46 AM
C code for Sending Email with attachment Mr coder High Level Programming 1 03-06-2009 10:29 AM
Sending email with text & attachment using mailx haryadoon Shell Programming and Scripting 3 07-27-2006 02:49 AM
Sending email w/ ftp log as attachment idesaj UNIX for Dummies Questions & Answers 2 07-19-2005 12:48 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-02-2009
bataf bataf is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 6
Sending email and attachment file using Perl

I am trying to send an email body of information and also attachment using perl script, but I am only able to send the body but not an attachment. is there around it without using "use MIME::Lite;" module.


Code:
 
$user = "bataf\@xyz.com";
$subjectt = "mail from perl";
open(MAIL, "| mailx -s TEST_Errors $user");
printf(MAIL "\t>>>>>>>>>  $date TEST_ ERRORS <<<<<<<<<<\n"); 
printf(MAIL "TEST ERRORSc8: $c8\n"); 
printf(MAIL "TEST ERRORSc7: $c7\n");
printf(MAIL "TEST ERRORSc4: $c4\n");

Thanks,
bataf
  #2 (permalink)  
Old 11-02-2009
TonyLawrence TonyLawrence is offline
Registered User
  
 

Join Date: Sep 2007
Location: SE Mass
Posts: 151
Quote:
Originally Posted by bataf View Post
I am trying to send an email body of information and also attachment using perl script, but I am only able to send the body but not an attachment. is there around it without using "use MIME::Lite;" module.


Code:
 
$user = "bataf\@xyz.com";
$subjectt = "mail from perl";
open(MAIL, "| mailx -s TEST_Errors $user");
printf(MAIL "\t>>>>>>>>>  $date TEST_ ERRORS <<<<<<<<<<\n"); 
printf(MAIL "TEST ERRORSc8: $c8\n"); 
printf(MAIL "TEST ERRORSc7: $c7\n");
printf(MAIL "TEST ERRORSc4: $c4\n");


Thanks,
bataf
I like the Mail::Sendmail module. Mail::Sendmail FAQ
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:23 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0