Discussion:
How to send HTML e-mail?
pcfreepress
2006-08-23 17:44:07 UTC
Permalink
Okay, I've seen various things posted about this, but I still just
can't get it to work, and I'm hoping someone here can help.

I'm trying to use blat to send an HTML e-mail containing a status
message to a list of people. Here is what I'm using on the command line:

blat "F:\Daily.html" -bf "F:\Daily.txt" -subject "Status Message:
Daily Job Status" -i "Status Reporter" -html

Here is the content of F:\Daily.html (with the beginning or ending
dashes, they're just to separate the content out):

--------------------
<html><body><span style="font-family:sans-serif;font-size:90%;">
<p style="background-color:#eeeeee;border-top: 1px solid
#cccccc;border-left:1px solid #cccccc;border-bottom: 1px solid
#666666;border-right: 1px solid #666666;margin: 0;padding: 0.25em;">
<span style=\"font-weight:bold;\">Daily job completed</span></p>
</body></html>
--------------------

I'm sending it to a Lotus Notes mailbox (yuck, but still, HTML e-mails
from other sources work fine). The problem is that the equals signs,
quotation marks, and other such characters are being "escaped" into an
equals sign followed by their ASCII equivalent. So for example,
<style="... become <style =3D=22... (3D is ASCII for the equals sign
and 22 is ASCII for the quotation mark.)

I've tried putting a backslash in front of the characters that are
being escaped, but it just escapes the backslash with =5C (ASCII for,
you guessed it, a backslash).

Is there any way that I'm missing to send the contents of an HTML file
as an HTML e-mail to someone?
--
Homepage:
http://www.blat.net

Community email addresses:
Post message: ***@yahoogroups.com
Subscribe: blat-***@yahoogroups.com
Unsubscribe: blat-***@yahoogroups.com
List owner: blat-***@yahoogroups.com

Shortcut URL to this page:
http://groups.yahoo.com/group/blat
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/blat/

<*> To unsubscribe from this group, send an email to:
blat-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
namtog
2006-08-23 20:11:40 UTC
Permalink
Greetings pcfreepress,

I saved your example HTML file on my computer as
pcfreepress.html.

<html><body><span style="font-family:sans-serif;font-size:90%;">
<p style="background-color:#eeeeee;border-top: 1px solid
#cccccc;border-left:1px solid #cccccc;border-bottom: 1px solid
#666666;border-right: 1px solid #666666;margin: 0;padding: 0.25em;">
<span style=\"font-weight:bold;\">Daily job completed</span></p>
</body></html>

I then used the command line below;

----------------------------------------------------
C:blat\Blat250>blat pcfreepress.html -to ***@yahoo.com -subject html
Blat v2.5.0 w/GSS encryption (build : Sep 14 2005 22:46:29)

Sending test.html to ***@yahoo.com
Subject: html
Login name is **********>

C:\blat\Blat250>
---------------------------------------------------

I then retrieved it from Yahoo email and it looked correct.

Here is a screen shot;
Loading Image...


One last tip. You can leave off the -html option from your
send line. Blat can tell from the content of the file it
it is HTML.

I don't use Lotus Notes, maybe someone else can help
you with that.

Namtog
--
Homepage:
http://www.blat.net

Community email addresses:
Post message: ***@yahoogroups.com
Subscribe: blat-***@yahoogroups.com
Unsubscribe: blat-***@yahoogroups.com
List owner: blat-***@yahoogroups.com

Shortcut URL to this page:
http://groups.yahoo.com/group/blat
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/blat/

<*> To unsubscribe from this group, send an email to:
blat-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
T***@macrosoft.pl
2006-08-23 22:44:54 UTC
Permalink
To send html with alternate text, embed image and attachments for list of
recipients:

blat
body.html
-f "***@domain"
-subject "test"
-html
-alttextf body.txt
-embed logo.gif
-tf rcv.txt
-af att.pdf

Tom

[Non-text portions of this message have been removed]
--
Homepage:
http://www.blat.net
Chip
2006-08-24 06:24:18 UTC
Permalink
Post by pcfreepress
Okay, I've seen various things posted about this, but I still just
can't get it to work, and I'm hoping someone here can help.
I'm trying to use blat to send an HTML e-mail containing a status
Daily Job Status" -i "Status Reporter" -html
Here is the content of F:\Daily.html (with the beginning or ending
--------------------
<html><body><span style="font-family:sans-serif;font-size:90%;">
<p style="background-color:#eeeeee;border-top: 1px solid
#cccccc;border-left:1px solid #cccccc;border-bottom: 1px solid
#666666;border-right: 1px solid #666666;margin: 0;padding: 0.25em;">
<span style=\"font-weight:bold;\">Daily job completed</span></p>
</body></html>
--------------------
I'm sending it to a Lotus Notes mailbox (yuck, but still, HTML e-mails
from other sources work fine). The problem is that the equals signs,
quotation marks, and other such characters are being "escaped" into an
equals sign followed by their ASCII equivalent. So for example,
<style="... become <style =3D=22... (3D is ASCII for the equals sign
and 22 is ASCII for the quotation mark.)
I've tried putting a backslash in front of the characters that are
being escaped, but it just escapes the backslash with =5C (ASCII for,
you guessed it, a backslash).
Is there any way that I'm missing to send the contents of an HTML file
as an HTML e-mail to someone?
You do not need the -html command line option if your message file has a htm
or html extension. Your Windows registry should already identify these file
extensions as html files so that Blat will format the message properly.

Chip
--
Homepage:
http://www.blat.net
Skough Axel U/IT-S
2006-08-24 11:05:36 UTC
Permalink
Hi,

To me, it seems that the problem description points out that there is some recoding problem concerning the Content-Transfer-Encoding, maybe originating from some type of gateway. The recoding markut is, however, typical for the Quoted-Printable schema, but should not concern common standard 7bit USASCII characters. The equal sign is special, and in general used as "encoding mark", therefore, encoding of this character occurs. Other 7bit printable characcters should be left unencoded - only 8bit characters (numbered 128-255) are in general encoded using the Quoted-Printable schema.

There should be a RFC2822 statement indicating how the proper message decoding should be performed at the recipient and this is what the Lotus Notes has to do.

To make extensive diagnosis one need to have both the message source available as it arrives and the RFC2822 headers to see what's wrong.

Regards,

Axel

-----Original Message-----
From: ***@yahoogroups.com [mailto:***@yahoogroups.com]On Behalf Of
pcfreepress
Sent: den 23 augusti 2006 19:44
To: ***@yahoogroups.com
Subject: [blat] How to send HTML e-mail?


Okay, I've seen various things posted about this, but I still just
can't get it to work, and I'm hoping someone here can help.

I'm trying to use blat to send an HTML e-mail containing a status
message to a list of people. Here is what I'm using on the command line:

blat "F:\Daily.html" -bf "F:\Daily.txt" -subject "Status Message:
Daily Job Status" -i "Status Reporter" -html

Here is the content of F:\Daily.html (with the beginning or ending
dashes, they're just to separate the content out):

--------------------
<html><body><span style="font-family:sans-serif;font-size:90%;">
<p style="background-color:#eeeeee;border-top: 1px solid
#cccccc;border-left:1px solid #cccccc;border-bottom: 1px solid
#666666;border-right: 1px solid #666666;margin: 0;padding: 0.25em;">
<span style=\"font-weight:bold;\">Daily job completed</span></p>
</body></html>
--------------------

I'm sending it to a Lotus Notes mailbox (yuck, but still, HTML e-mails
from other sources work fine). The problem is that the equals signs,
quotation marks, and other such characters are being "escaped" into an
equals sign followed by their ASCII equivalent. So for example,
<style="... become <style =3D=22... (3D is ASCII for the equals sign
and 22 is ASCII for the quotation mark.)

I've tried putting a backslash in front of the characters that are
being escaped, but it just escapes the backslash with =5C (ASCII for,
you guessed it, a backslash).

Is there any way that I'm missing to send the contents of an HTML file
as an HTML e-mail to someone?
--
Community email addresses:
Post message: ***@yahoogroups.com
Subscribe: blat-***@yahoogroups.com
Unsubscribe: blat-***@yahoogroups.com
List owner: blat-***@yahoogroups.com

Shortcut URL to this page:
http://groups.yahoo.com/group/blat
Yahoo! Groups Links
--
Homepage:
http://www.blat.net

Community email addresses:
Post message: ***@yahoogroups.com
Subscribe: blat-***@yahoogroups.com
Unsubscribe: blat-***@yahoogroups.com
List owner: blat-***@yahoogroups.com

Shortcut URL to this page:
http://groups.yahoo.com/group/blat
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/blat/

<*> To unsubscribe from this group, send an email to:
blat-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
T***@macrosoft.pl
2006-08-24 11:18:33 UTC
Permalink
...and what version of blat??

Tom

[Non-text portions of this message have been removed]
--
Homepage:
http://www.blat.net
T***@macrosoft.pl
2006-08-24 11:17:13 UTC
Permalink
I use blat to send html messages to LN. It works fine. What version of LN
do You have?

Tom

[Non-text portions of this message have been removed]
--
Homepage:
http://www.blat.net
fcercamx
2006-08-24 00:20:20 UTC
Permalink
Hi:

I had the same problem. In my own case i use blat.dll, not blat.exe.
Blat.dll contains a function named Send(string_variable), and
string_variable must match blat sintax:


This is the sentence a use to send my emails:

string_variable = 'null -to ***@domain -subject "Test Message" -
body || sVarhtml || "Prueba de Cuerpo del mensaje" -Server myserver -
f ***@domain -html" '


sVarhtml is assigned as follows (remove quotation marks) :

sVarhtml = '
<html>
<head>
<meta http-equiv=Content-Language content=es-mx>
<meta http-equiv=Content-Type content=text/html; charset=windows-1252>
<meta name=GENERATOR content=Microsoft FrontPage 4.0>
<meta name=ProgId content=FrontPage.Editor.Document>
<title>Pagina nueva 1</title>
</head>
<body>
<p><b>Table Example</b></p>
<table border=1 width=19%>
<tr>
<td width=43% bgcolor=#0000FF><font color=#FFFF00 size=4><b>Cell
1</b></font></td>
<td width=57% bgcolor=#0000FF><font color=#FFFFFF size=4><b>Cell
3</b></font></td>
</tr>
<tr>
<td width=43% bgcolor=#800080><font color=#FFFFFF size=4><b>Cell
2</b></font></td>
<td width=57% bgcolor=#800080><font color=#FFFF00 size=4><b>Cell
4</b></font></td>
</tr>
</table>
</body>
</html> '


I hope this helps you

Regards
Post by pcfreepress
Okay, I've seen various things posted about this, but I still just
can't get it to work, and I'm hoping someone here can help.
I'm trying to use blat to send an HTML e-mail containing a status
Daily Job Status" -i "Status Reporter" -html
Here is the content of F:\Daily.html (with the beginning or ending
--------------------
<html><body><span style="font-family:sans-serif;font-size:90%;">
<p style="background-color:#eeeeee;border-top: 1px solid
#cccccc;border-left:1px solid #cccccc;border-bottom: 1px solid
#666666;border-right: 1px solid #666666;margin: 0;padding: 0.25em;">
<span style=\"font-weight:bold;\">Daily job completed</span></p>
</body></html>
--------------------
I'm sending it to a Lotus Notes mailbox (yuck, but still, HTML e-
mails
Post by pcfreepress
from other sources work fine). The problem is that the equals
signs,
Post by pcfreepress
quotation marks, and other such characters are being "escaped" into an
equals sign followed by their ASCII equivalent. So for example,
<style="... become <style =3D=22... (3D is ASCII for the equals sign
and 22 is ASCII for the quotation mark.)
I've tried putting a backslash in front of the characters that are
being escaped, but it just escapes the backslash with =5C (ASCII for,
you guessed it, a backslash).
Is there any way that I'm missing to send the contents of an HTML file
as an HTML e-mail to someone?
--
Homepage:
http://www.blat.net

Community email addresses:
Post message: ***@yahoogroups.com
Subscribe: blat-***@yahoogroups.com
Unsubscribe: blat-***@yahoogroups.com
List owner: blat-***@yahoogroups.com

Shortcut URL to this page:
http://groups.yahoo.com/group/blat
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/blat/

<*> To unsubscribe from this group, send an email to:
blat-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Continue reading on narkive:
Loading...