Sponsored Content
Top Forums Shell Programming and Scripting Sending HTML Email through mailx Post 302561662 by Chubler_XL on Tuesday 4th of October 2011 09:57:29 PM
Old 10-04-2011
Everything you posted looks fine, I tried it out in AIX 5.3 reading the email with outlook and all worked as expected.

There must be some issue with embedding \n in the subject, it's a bit of a kludge and perhaps HPUX is stripping out everything after the \n

Why not try:
Code:
echo "Just testing" | mailx -s "Another test
X-Priority: 1 (Highest)" receiver@host.com

and see if you can set the high priority flag.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sending email from mailx

hi can i know how to use mailx to send email to my lotus email account? i wan to send a file in a directory as an attachment and then email to lotus. can show me the command line to do it? thanks a lot (1 Reply)
Discussion started by: legato
1 Replies

2. UNIX for Advanced & Expert Users

Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win)

Hi A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as " usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)
Discussion started by: Vetrivela
2 Replies

3. Shell Programming and Scripting

Sending email with text & attachment using mailx

I spent some time working this out, with a little help from various forums, and thought the community would like to know : Here is how you can send an email from a single Unix command line : /usr/bin/echo "Email text\nNew line\nAnother new line" >x | uuencode sourcefile.txt sourcefile.txt |... (3 Replies)
Discussion started by: haryadoon
3 Replies

4. Shell Programming and Scripting

Referring to attached images in html email body through mailx

encoding type for images? (5 Replies)
Discussion started by: biswasbaishali
5 Replies

5. Shell Programming and Scripting

How to embed a html file in a mail sending from Linux box with uuencode or mailx?

How to embed a html file as subject in a mail sending from Linux box with uuencode or mailx or any other way? we do not want the file as attachment, it should be embedded in the mail subject. (2 Replies)
Discussion started by: johnveslin
2 Replies

6. UNIX for Dummies Questions & Answers

Sending html email with html attachment

Hello, I have a script which is sending an html file as an attachment. #!/usr/bin/ksh export MAILTO="user@company.com" export CONTENT="/usr/tmp/file.html" export SUBJECT="EmailSubject" ( echo "Subject: $SUBJECT" echo "MIME-Version: 1.0" echo "Content-Type: text/html" echo... (0 Replies)
Discussion started by: sreenathkg
0 Replies

7. Shell Programming and Scripting

[Solved] Sending a HTML email from cli loses formatting.

Hi, I have a .sh file, to email a report of our backups from a linux machine. It looks like this (minus a few bits): echo "HELO $host.$domain" sleep 1 echo "mail from: vdrreport@$domain" sleep 1 echo "rcpt to:$mailto" sleep 1 echo "data" sleep 1 echo "subject: $host VDR-Report... (2 Replies)
Discussion started by: cognito
2 Replies

8. Shell Programming and Scripting

Sending HTML Email

1) Can you please provide me with a best example of how to send an HTML email via mutt or mail or send email commands using bash shell. 2) I tried below but i am not able to get the variable values in the HTML email output. (cat <<-EOT <html> <head><title></title> </head> <body> <p>Hello,... (9 Replies)
Discussion started by: Ariean
9 Replies

9. Shell Programming and Scripting

Mailx sending attachments to personal email, but not SharePoint?

Hello! I am writing a KornShell script that (in addition to other things) sends a file from a Unix directory to a SharePoint directory. However when executing the script there is no sign of the file on the SharePoint. I have tested the script using my personal email as the destination and the... (3 Replies)
Discussion started by: mattkoz
3 Replies

10. Shell Programming and Scripting

HTML not coming while sending using email

echo "$1" > test.txt awk 'BEGIN{ FS="|" print "MIME-Version: 1.0" print "Content-Type: text/html" print "Content-Disposition: inline" print "<HTML>""<TABLE border="1"><TH>Heading1</TH><TH>Heading2</TH><TH>Heading3</TH>" } { printf "<TR>" for(i=1;i<=NF;i++) printf "<TD>%s</TD>", $i... (2 Replies)
Discussion started by: ATWC
2 Replies
__PPC_SET_PPR_MED(3)					     LinuxProgrammer's Manual					      __PPC_SET_PPR_MED(3)

NAME
__ppc_set_ppr_med, __ppc_set_ppr_very_low, __ppc_set_ppr_low, __ppc_set_ppr_med_low, __ppc_set_ppr_med_high - Set the Program Priority Reg- ister SYNOPSIS
#include <sys/platform/ppc.h> void __ppc_set_ppr_med(void); void __ppc_set_ppr_very_low(void); void __ppc_set_ppr_low(void); void __ppc_set_ppr_med_low(void); void __ppc_set_ppr_med_high(void); DESCRIPTION
These functions provide access to the Program Priority Register (PPR) on the Power architecture. The PPR is a 64-bit register that controls the program's priority. By adjusting the PPR value the programmer may improve system throughput by causing system resources to be used more efficiently, especially in contention situations. The available unprivileged states are cov- ered by the following functions: * __ppc_set_ppr_med() sets the Program Priority Register value to medium (default). * __ppc_set_ppr_very_low() sets the Program Priority Register value to very low. * __ppc_set_ppr_low() sets the Program Priority Register value to low. * __ppc_set_ppr_med_low() sets the Program Priority Register value to medium low. The privileged state medium high may also be set during certain time intervals by problem-state (unprivileged) programs, with the following function: * __ppc_set_ppr_med_high() sets the Program Priority to medium high. If the program priority is medium high when the time interval expires or if an attempt is made to set the priority to medium high when it is not allowed, the priority is set to medium. VERSIONS
The functions __ppc_set_ppr_med(), __ppc_set_ppr_low() and __ppc_set_ppr_med_low() are provided by glibc since version 2.18. The functions __ppc_set_ppr_very_low() and __ppc_set_ppr_med_high() first appeared in glibc in version 2.23. ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). +---------------------------+---------------+---------+ |Interface | Attribute | Value | +---------------------------+---------------+---------+ |__ppc_set_ppr_med(), | Thread safety | MT-Safe | |__ppc_set_ppr_very_low(), | | | |__ppc_set_ppr_low(), | | | |__ppc_set_ppr_med_low(), | | | |__ppc_set_ppr_med_high() | | | +---------------------------+---------------+---------+ CONFORMING TO
These functions are nonstandard GNU extensions. NOTES
The functions __ppc_set_ppr_very_low() and __ppc_set_ppr_med_high() will be defined by <sys/platform/ppc.h> if _ARCH_PWR8 is defined. Availability of these functions can be tested using #ifdef _ARCH_PWR8. SEE ALSO
__ppc_yield(3) Power ISA, Book II - Section 3.1 (Program Priority Registers) GNU C Library 2017-09-15 __PPC_SET_PPR_MED(3)
All times are GMT -4. The time now is 09:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy