03-21-2014
Thanks Corona688. mimesender is supposed to work ok with no body specified and (I think) I remember testing that with Outlook (probably on XP) and with some UA on HP-UX (probably elm). It may be that the UA being used by the OP has a bug and it requires the presence of of a body. It also may be that my very old script is no longer compatible with current email standards.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi, I am trying to include a message along with an attachment with an email using mailx on AIX.
uuencode Test.dat Test.dat| mailx -s 'Testing' mymail@yahoo.com < MESGFILE
This only gives me the contents of MESGFILE as my message.
If I remove the < FILE I recieve the attachment.
What... (4 Replies)
Discussion started by: edog
4 Replies
2. Shell Programming and Scripting
Hi,
I use MIME::Lite to send an e-mail with an attachment:
$msg = MIME::Lite->new(
From =>$usermail,
To =>$tomail,
Subject =>'Nieuw Pegasus Adresboek',
Type =>'multipart/mixed'
);
$msg->attach(Type =>'TEXT',
Data =>$message
);
$msg->attach(Type =>'text/plain',
Path... (4 Replies)
Discussion started by: tine
4 Replies
3. Shell Programming and Scripting
Hi All,
I am trying to send a mail with an attachment and message. Following command I am using.
(cat <messagefile> ; uuencode <attachmentfile> <attachmentfile>)|mailx -s"Subject" dave@email.com
In the received mail, message body is appearing fine. But attachment is not coming. Rather... (2 Replies)
Discussion started by: nihar.dutta
2 Replies
4. UNIX for Dummies Questions & Answers
Hello:
I've searched de forum but could not find an answer to send an email via sendmail in HTML with an text-file (plain-text) as attachment:
My code:
export FROM="Me"
export MAILTO="mymail"
export SUBJECT=$TITULO$bbdd
export BODY=$LOG
(
echo "FROM:$FROM"
echo "To: $MAILTO"... (2 Replies)
Discussion started by: Felix2511
2 Replies
5. AIX
Hi,
I have .ksh file which internally calls a .sql file. This sql file writes a file with the result. I am using the following command to send email with the result file as attachment
uuencode file.txt file.txt | mail -s "Subject" abc@abc.com.
When i run the .ksh file i get a message you... (5 Replies)
Discussion started by: piyushprabhakar
5 Replies
6. Solaris
I'm trying to send a .zip file from my unix box to my work email (email client outlook)
The file name that I'm trying to sent is sites.zip and this is how I do it:
uuencode sites.zip | mailx -s "testing" myname@mydomain.com
When I open the .zip, the zip is empty. Looking around the we, I... (17 Replies)
Discussion started by: amb1s1
17 Replies
7. Shell Programming and Scripting
i have to attach the 'body in the email' along with attachment below code is throwing errors, how can i do it ?
here body file contains message, it should display in email, please help
i am using HP-UX
(cat body ;) (uuencode attch1 attch1 ;) | mailx -m -s "testing" "abc@gmail.com"
... (4 Replies)
Discussion started by: only4satish
4 Replies
8. Shell Programming and Scripting
I have a file in unix, while i do email that file to some one from unix, the attachment file data is displaying in the email. (as body of the email).
but if the file has some special characters , the file is emailing as attachment.
But i need the file as the body in the email if it has special... (1 Reply)
Discussion started by: nani1984
1 Replies
9. Red Hat
Hello experts!!
I am trying to send an email with message body and attachment.but i am getting any one like message body or attachment.
I tried below command:
(echo "subject:test";echo "MIME-Version: 1.0";echo "content-transfer-encoding:base 64";echo "content-type:txt;name=test.txt";cat... (2 Replies)
Discussion started by: Devipriya Ch
2 Replies
LEARN ABOUT PHP
tidy_get_body
TIDY_GET_BODY(3) 1 TIDY_GET_BODY(3)
tidy::body - Returns atidyNodeobject starting from the <body> tag of the tidy parse tree
Object oriented style
SYNOPSIS
tidyNode tidy::body (void )
DESCRIPTION
Procedural style
tidyNode tidy_get_body (tidy $object)
Returns a tidyNode object starting from the <body> tag of the tidy parse tree.
PARAMETERS
o $object
- The Tidy object.
RETURN VALUES
Returns a tidyNode object starting from the <body> tag of the tidy parse tree.
EXAMPLES
Example #1
tidy.getBody(3) example
<?php
$html = '
<html>
<head>
<title>test</title>
</head>
<body>
<p>paragraph</p>
</body>
</html>';
$tidy = tidy_parse_string($html);
$body = $tidy->Body();
echo $body->value;
?>
The above example will output:
<body>
<p>paragraph</p>
</body>
NOTES
Note
This function is only available with Zend Engine 2 (PHP >= 5.0.0).
SEE ALSO
tidy.head(3), tidy.html(3).
PHP Documentation Group TIDY_GET_BODY(3)