Strictly speaking you should also have MIME-Version and Content-Transfer-Encoding headers. MIME-Version is simply 1.0, there has never been any other version; for Content-Transfer-Encoding, 7bit is appropriate if the content is plain 7-bit ASCII text with no long lines (longer than 1024 characters IIRC). (If it's not plain 7-bit ASCII you should also define the character set in Content-Type.)
Some versions of cat will accept standard input as an argument, so you can say
I want to send email message in html format using unix shell script. I use sendEmail command in my script to send email message. The syntaxt of the sendEmail command is as follows:
$sendEmail -f <email> -t <email> -u $subject -s smtpserver:port -o message-file=html
I should be able to... (1 Reply)
Hi All,
I need assistance is sending email out using korn shell
Steps,
1- Count number of records in database.
2- if count is more than 2000
3- send email to user else if less then 1999 exit out.
Here is my script and is not exiting out and need to press .DOT and Enter command to... (2 Replies)
Hi All,
I am new to the unix , i have to deliver one script very urgently
I have to write a shell script where i have i want to send email to specific email id
in this script i want
FROM to be parameterized and stored in a variable
TO to be parameterized and stored in a variable... (3 Replies)
Hello ,
I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them .
I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
hi..
Could somebody help me how to sent an attachment using sendmail command and the content is HTML format ?.
Below is my code to sent the email as HTML but i do not know how to sent the attachment, please help me
To: "BAHARIN HASAN"<baharin.hasan@gmail.com>
from: "DATAONE SDN... (4 Replies)
This is my below script which is working fine as it send only plain text email.
So My question is- How can I modify my below script to send this as an HTML formatted email? I want to show the text color of this expression `(echo "100*$TEST2/$TEST1" | bc -l)` as `RED` in an email and that can be... (3 Replies)
Hi ,
I have a sql query in the unix script ,whose output is shown below.I want to convert this output to HTML table format & send email from unix with this table as email body.
p_id src_system amount
1 A 100
2 B 200
3 C ... (3 Replies)
I am attempting to write a script where I can pass in parameters ( to , from, the location of a pdf attachment ) and send an email that has HTML for the body content and a PDF as an attachment.
I have failed to achieve this with sendmail and mutt. I recently found this.
If there are any... (2 Replies)
I am using Sun Solaris ver. 5.10 and trying to send an HTML table in email body using mail command in C shell script.
I tried following commands:-
#1
mail -m "MIME-Version: 1.0;Content-type:text/html;charset=UTF-8" receiver@mail.com < file.html #2
mail -m "Content-type: text/html;" -s "This... (4 Replies)
Heyy,
any help would be grateful....
LOOKING FOR THE WAYS TO SEND AN EMAIL WITH ATTACHMENT & HTML TABLES IN BODY THROUGH SHELL SCRIPT (LINUX)..NOT SURE, IF WE HAVE ANY INBUILT HTML TAG OR UNIX COMMAND TO SEND THE ATTACHMENTS. KINDLY HELP
below is small script posted for our understanding..... (2 Replies)
Discussion started by: Harsha Vardhan
2 Replies
LEARN ABOUT DEBIAN
email::mime::contenttype
Email::MIME::ContentType(3pm) User Contributed Perl Documentation Email::MIME::ContentType(3pm)NAME
Email::MIME::ContentType - Parse a MIME Content-Type Header
VERSION
version 1.013
$Id: /my/pep/Email-MIME-ContentType/trunk/lib/Email/MIME/ContentType.pm 31133 2007-03-22T19:52:26.296283Z rjbs $
SYNOPSIS
use Email::MIME::ContentType;
# Content-Type: text/plain; charset="us-ascii"; format=flowed
my $ct = 'text/plain; charset="us-ascii"; format=flowed';
my $data = parse_content_type($ct);
$data = {
discrete => "text",
composite => "plain",
attributes => {
charset => "us-ascii",
format => "flowed"
}
};
FUNCTIONS
parse_content_type
This routine is exported by default.
This routine parses email content type headers according to section 5.1 of RFC 2045. It returns a hash as above, with entries for the dis-
crete type, the composite type, and a hash of attributes.
WARNINGS
This is not a valid content-type header, according to both RFC 1521 and RFC 2045:
Content-Type: type/subtype;
If a semicolon appears, a parameter must. "parse_content_type" will carp if it encounters a header of this type, but you can suppress this
by setting $Email::MIME::ContentType::STRICT_PARAMS to a false value. Please consider localizing this assignment!
PERL EMAIL PROJECT
This module is maintained by the Perl Email Project.
<http://emailproject.perl.org/wiki/Email::MIME::ContentType>
AUTHOR
Casey West, "casey@geeknest.com" Simon Cozens, "simon@cpan.org"
SEE ALSO
Email::MIME
perl v5.8.8 2008-03-01 Email::MIME::ContentType(3pm)