07-25-2019
Have you considered formatting and sending your email message as an HTML file?
This User Gave Thanks to Neo For This Post:
10 More Discussions You Might Find Interesting
1. HP-UX
Dear All,
We have following code to send mails from unix to users. We want to see few sentences of mail in bold font or to hightlight few lines in different colours. Could you please let me know how can we do it in function construct_body.
... (3 Replies)
Discussion started by: yogichavan
3 Replies
2. Shell Programming and Scripting
Hi,
I would like to change the font size in bash. I know how do it in ksh:
F_VDOBLE="\033#6"
print "${F_VDOBLE}Esto es..."
But in bash I don't know
Could you help me please?
Many thanks! (5 Replies)
Discussion started by: mierdatuti
5 Replies
3. UNIX for Dummies Questions & Answers
Hi
The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment .
cat Employee.sql
SET VERIFY OFF
SET PAGESIZE 200
SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON -
HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies
4. Shell Programming and Scripting
I am writing sql reports to an oracle database, spooling them to a file and emailing them with mailx. I use the syntax below. The reports do not format properly, unless I use the Courier New font. How do I set this with mailx?
mailx -s "MY REPORT, `date +'%D %r` " -r "REPORTING SYSTEM"... (2 Replies)
Discussion started by: guessingo
2 Replies
5. UNIX for Advanced & Expert Users
i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail.
actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies
6. Ubuntu
Hi Guys..
yesterday i purchased a VPS server and installed sendmail on ubuntu 12.4 with Webmin & Apache runing webserver
problem is..
i can send mail via webmin user interface account to anybody to out side to any domain and able to recieve any mail from any domain..
Now main... (2 Replies)
Discussion started by: cmdman
2 Replies
7. Programming
Does anyone know how to change the font size into a larger one, in a basic Motif application? (1 Reply)
Discussion started by: JenniferKuiper
1 Replies
8. UNIX for Dummies Questions & Answers
how do i change from employee= to employee= in ksh.
in my shell script, i just want to employee= to BOLD. (3 Replies)
Discussion started by: lawsongeek
3 Replies
9. Shell Programming and Scripting
Hi All,
I have a file that contains following entries.
I want to highlight the line that has word as "FAILURE" while sending the email.
File
------------------------------------------------------------
Job Name: ABC
Start Time: 07/20/2019 07:32:39
End Time: 07/20/2019... (4 Replies)
Discussion started by: sdosanjh
4 Replies
10. UNIX for Advanced & Expert Users
I am having trouble getting mail to work on a red hat server. At first I was getting this message.
Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused
Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
LEARN ABOUT DEBIAN
html::rewriteattributes::resources
HTML::RewriteAttributes::Resources(3pm) User Contributed Perl Documentation HTML::RewriteAttributes::Resources(3pm)
NAME
HTML::RewriteAttributes::Resources - concise resource-link rewriting
SYNOPSIS
# writing some HTML email I see..
$html = HTML::RewriteAttributes::Resources->rewrite($html, sub {
my $uri = shift;
my $content = render_template($uri);
my $cid = generate_cid_from($content);
$mime->attach($cid => content);
return "cid:$cid";
});
# need to inline CSS too?
$html = HTML::RewriteAttributes::Resources->rewrite($html, sub {
# see above
},
inline_css => sub {
my $uri = shift;
return render_template($uri);
});
# need to inline CSS and follow @imports?
$html = HTML::RewriteAttributes::Resources->rewrite($html, sub {
# see above
},
inline_css => sub {
# see above
}, inline_imports => 1);
DESCRIPTION
"HTML::RewriteAttributes::Resources" is a special case of HTML::RewriteAttributes for rewriting links to resources. This is to facilitate
generating, for example, HTML email in an extensible way.
We don't care about how to fetch resources and attach them to the MIME object; that's your job. But you don't have to care about how to
rewrite the HTML.
METHODS
"new"
You don't need to call "new" explicitly - it's done in "rewrite". It takes no arguments.
"rewrite" HTML, callback[, args] -> HTML
See the documentation of HTML::RewriteAttributes.
The callback receives as arguments the resource URI (the attribute value), then, in a hash, "tag" and "attr".
Inlining CSS
"rewrite" can automatically inline CSS for you.
Passing "inline_css" will invoke that callback to inline "style" tags. The callback receives as its argument the URI to a CSS file, and
expects as a return value the contents of that file, so that it may be inlined. Returning "undef" prevents any sort of inlining.
Passing "inline_imports" (a boolean) will look at any inline CSS and call the "inline_css" callback to inline that import.
This keeps track of what CSS has already been inlined, and won't inline a particular CSS file more than once (to prevent import loops).
SEE ALSO
HTML::RewriteAttributes, HTML::Parser, Email::MIME::CreateHTML
AUTHOR
Shawn M Moore, "<sartak@bestpractical.com>"
LICENSE
Copyright 2008-2010 Best Practical Solutions, LLC. HTML::RewriteAttributes::Resources is distributed under the same terms as Perl itself.
perl v5.10.1 2010-11-18 HTML::RewriteAttributes::Resources(3pm)