Sponsored Content
Top Forums Shell Programming and Scripting Sending an Email using MIME protocol Post 302875597 by rajamadhavan on Wednesday 20th of November 2013 12:51:36 AM
Old 11-20-2013
Your data has several characters without any escape that perl interprets differently. Please use this way


Code:
$Data = <<EOF;
<html>
<head>
</head>
<body>
<table border=1  cellspacing=0 cellpadding=0 width=85%>
<tr style="text-align:center bgcolor=brown" font-color:>
<td colspan="2" width="97%"  style="line-height:115%"><b><font size="5" color="white" face="Arial"><span style="font-size:16.0pt;line-height:115%;font-family:Arial;color:white;font-weight:bold"> EMPLOYEEE DATABASE </span></font></b></td>
</tr>
<tr>
<td width="24%" height="30%" bgcolor="green" style="text-align:right"><b> <font size="3" color="black" face="Arial"><b><font> <span style="font-size:11.0pt;line-height:115%;font-family:Arial;color:black;font-weight:bold"> Name:</span> </font></b> </td>
<td><font size="3" color="black" face="calibri"> ABCDE </font></td>
</tr>
<tr>
<td bgcolor="#93FFC4" style="text-align:right"><b><font size="3" color="black" face="Arial"> <span style="font-size:11.0pt;line-height:115%;font-family:Arial;color:black;font-weight:bold">AGE </span></font></b> </td>
<td><font size='3' color='black' face='calibri'> 152 </font></td>
</tr>
</table>
</body>
</html>
EOF

 

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
Data::Serializer::Convert::Bencode(3pm) 		User Contributed Perl Documentation		   Data::Serializer::Convert::Bencode(3pm)

NAME
Data::Serializer::Convert::Bencode - Creates bridge between Data::Serializer and Convert::Bencode SYNOPSIS
use Data::Serializer::Convert::Bencode; DESCRIPTION
Module is used internally to Data::Serializer serialize - Wrapper to normalize serializer method name deserialize - Wrapper to normalize deserializer method name AUTHOR
Neil Neely <neil@neely.cx>. http://neil-neely.blogspot.com/ BUGS
Please report all bugs here: http://rt.cpan.org/Public/Dist/Display.html?Name=Data-Serializer COPYRIGHT AND LICENSE
Copyright (c) 2011 Neil Neely. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.2 or, at your option, any later version of Perl 5 you may have available. SEE ALSO
perl(1), Data::Serializer(3), Convert::Bencode(3). perl v5.12.4 2011-08-16 Data::Serializer::Convert::Bencode(3pm)
All times are GMT -4. The time now is 11:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy