Sponsored Content
Top Forums Shell Programming and Scripting Sending an Email using MIME protocol Post 302875291 by rajamadhavan on Tuesday 19th of November 2013 07:05:20 AM
Old 11-19-2013
Your $data string should have a semicolon.

Code:
$data = '<html>
<body>
<table>
<tr>
<td> Name: </td>
<td> </td>
</tr>        
<tr>
<td> Age: </td>
<td>  </td>
</tr> 
<tr>
<td> Location: </td>
<td> </td>
</tr> 
</body>
</html>';

 

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem sending excel attachments with MIME::Lite in perl

I am running a perl script that generates an excel doc and then emails it as an attachment. I can generate the excel file fine. I can scp it from the box and open it with no problems. When I send it over email, the file does open properly. The file in email is only 288 B, but on the server it is... (1 Reply)
Discussion started by: Mike_the_Man
1 Replies

2. Shell Programming and Scripting

Sending Attachment using MIME::Lite and Net::SMTP

Hello, I'm a newbie perl scriptor and i'm trying to figure out why i can't send an email using MIME::Lite with Net::SMTP. I keep receiving the following error: SMTP MAIL command failed: 5.7.1 Helo invalid . at attach1.pl line 31 The error keeps coming from the very last line... (2 Replies)
Discussion started by: xmaverick
2 Replies

3. Shell Programming and Scripting

Sending Attachment using MIME in UNIX

Hi, I am using the below code for sending attachment in UNIX but only blank attachment is coming in email even the content is not coming. Please help!!! export CONTENT="${DIR}/${RUN_DATE}_mailbody.txt" export SUBJECT="Search Result for Pattern - ${1}" export ATTACH=${2} ( echo... (9 Replies)
Discussion started by: rajesshh
9 Replies

4. Shell Programming and Scripting

uuencode to MIME email attachment converter?

Hello all, we have an IMAP email system here that basically uses email as the transport for a transaction processing system. Users submit their transaction via an email, and our in-house application pulls the emails from the IMAP server and processes the transaction. Our problem is that we have... (0 Replies)
Discussion started by: lupin..the..3rd
0 Replies

5. UNIX for Beginners Questions & Answers

MIME type for sending gzip file as attachment in email

Hello, I am trying to send a gzip file on email using below command but the zipped file received on email is corrupt. mailsend -smtp $smtpip -content-type 'application/x-gzip' -mime-type "application/x-gzip" -t $receiver -f $sender -sub "$subject" -M "$MSG" -attach $file file name is ... (1 Reply)
Discussion started by: tushar.modgil
1 Replies
DB(3pm) 						User Contributed Perl Documentation						   DB(3pm)

NAME
Apache::DB - Run the interactive Perl debugger under mod_perl SYNOPSIS
<Location /perl> PerlFixupHandler +Apache::DB SetHandler perl-script PerlHandler +Apache::Registry Options +ExecCGI </Location> DESCRIPTION
Perl ships with a very useful interactive debugger, however, it does not run "out-of-the-box" in the Apache/mod_perl environment. Apache::DB makes a few adjustments so the two will cooperate. FUNCTIONS
init This function initializes the Perl debugger hooks without actually starting the interactive debugger. In order to debug a certain piece of code, this function must be called before the code you wish debug is compiled. For example, if you want to insert debugging symbols into code that is compiled at server startup, but do not care to debug until request time, call this function from a PerlRequire'd file: #where db.pl is simply: # use Apache::DB (); # Apache::DB->init; PerlRequire conf/db.pl #where modules are loaded PerlRequire conf/init.pl If you are using mod_perl 2.0 you will need to use the following as your db.pl: use APR::Pool (); use Apache::DB (); Apache::DB->init(); handler This function will start the interactive debugger. It will invoke Apache::DB::init if needed. Example configuration: <Location /my-handler> PerlFixupHandler Apache::DB SetHandler perl-script PerlHandler My::handler </Location> SELinux Security-enhanced Linux (SELinux) is a mandatory access control system many linux distrobutions are implementing. This new security scheme can assist you with protecting a server, but it doesn't come without its own set of issues. Debugging applications running on a box with SELinux on it takes a couple of extra steps and unfortunately the instructions that follow have only been tested on RedHat/Fedora. 1) You need to edit/create the file "local.te" and add the following: if (httpd_tty_comm) { allow { httpd_t } admin_tty_type:chr_file { ioctl getattr }; } 2) Reload your security policy. 3) Run the command "setsebool httpd_tty_comm true". You should be aware as you debug applications on a system with SELinux your code may very well be correct, but the system policy is denying your actions. CAVEATS
-X The server must be started with the "-X" to use Apache::DB. filename/line info The filename of Apache::Registry scripts is not displayed. SEE ALSO
perldebug(1) AUTHOR
Originally written by Doug MacEachern Currently maintained by Frank Wiles <frank@wiles.org> LICENSE
This module is distributed under the same terms as Perl itself. perl v5.14.2 2008-04-27 DB(3pm)
All times are GMT -4. The time now is 06:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy