Discussion:
[blat] Using BLAT for sending application's Log Files
sdancer75@yahoo.gr [blat]
2016-05-13 13:53:19 UTC
Permalink
Hi,


I want to use BLAT for sending to a specific email account the log files from my client's applications logs.


The problem is that the username and the password of this emal account should be exposed to the public.


So, Is there anything I can to do for that ie a cryptographic method for the sensitve data, a web form connections etc ?


Regards,
'Mike Mattos' mmattos@rogers.com [blat]
2016-05-13 15:28:39 UTC
Permalink
If you don’t keep blat logs, the destination won’t be saved. HOWEVER, your email server will always have a record of the destination address. Your problem isn’t with BLAT, it is with preventing anyone ( IT staff, ISP staff ) from accessing the server logs.



You NEVER need to use a password for a destination email



Mike Mattos



“To succeed in the world it is not enough to be stupid, you must also be well-mannered”



Voltaire



From: ***@yahoogroups.com [mailto:***@yahoogroups.com]
Sent: May 13, 2016 9:53 AM
To: ***@yahoogroups.com
Subject: [blat] Using BLAT for sending application's Log Files





Hi,



I want to use BLAT for sending to a specific email account the log files from my client's applications logs.



The problem is that the username and the password of this emal account should be exposed to the public.



So, Is there anything I can to do for that ie a cryptographic method for the sensitve data, a web form connections etc ?



Regards,
sdancer75@yahoo.gr [blat]
2016-05-13 16:29:26 UTC
Permalink
Hi,

Thank you for your answer. Maybe I did gave you a good explanation to my problem.


1st check my blat parameters.


blat -body "App.log report is attached." -subject "My App Log Report" -f ***@mycompany.gr -to ***@mycompany.gr -server mail.mycompany.gr -port 587 -u loguser -pw logpass123! -attacht app.log


This above script goes to EVERY client of ours. As you can see by yourself, to send an email from ***@mycompany.gr to ***@mycompany.gr I HAVE to entry the username as well as the password of the send mail which in this case is the ***@mycompany.gr.


This is a problem for my. I dont want my client to KNOW the username and the password of the specific email account.


So, what is my options here ?


Regards,
Doug Jenkins doug_jenkins@comcast.net [blat]
2016-05-14 13:17:13 UTC
Permalink
The answer to your problem would be to have your clients change the server, userid, and password to point to their local mail server. Then when this runs it will send the logs to you using their own mail server which will then send the email to your mail server.

Sent from Doug's iPad
Post by ***@yahoo.gr [blat]
Hi,
Thank you for your answer. Maybe I did gave you a good explanation to my problem.
1st check my blat parameters.
This is a problem for my. I dont want my client to KNOW the username and the password of the specific email account.
So, what is my options here ?
Regards,
'Mike Mattos' mmattos@rogers.com [blat]
2016-05-14 14:30:55 UTC
Permalink
Since this is a commercial operation, why not spend a small amount of money and purchase an email service from GoDaddy or EasyDNS dedicated to this task?



Then give your clients access to that email service rather than access to your company server. Would cost about $5 a month and be secure.



Mike Mattos



“To succeed in the world it is not enough to be stupid, you must also be well-mannered”



Voltaire



From: ***@yahoogroups.com [mailto:***@yahoogroups.com]
Sent: May 14, 2016 9:17 AM
To: ***@yahoogroups.com
Subject: Re: [blat] Using BLAT for sending application's Log Files





The answer to your problem would be to have your clients change the server, userid, and password to point to their local mail server. Then when this runs it will send the logs to you using their own mail server which will then send the email to your mail server.

Sent from Doug's iPad


On May 13, 2016, at 12:29, ***@yahoo.gr [blat] <***@yahoogroups.com> wrote:



Hi,



Thank you for your answer. Maybe I did gave you a good explanation to my problem.



1st check my blat parameters.



blat -body "App.log report is attached." -subject "My App Log Report" -f ***@mycompany.gr -to ***@mycompany.gr -server mail.mycompany.gr -port 587 -u loguser -pw logpass123! -attacht app.log



This above script goes to EVERY client of ours. As you can see by yourself, to send an email from ***@mycompany.gr to ***@mycompany.gr I HAVE to entry the username as well as the password of the send mail which in this case is the ***@mycompany.gr.



This is a problem for my. I dont want my client to KNOW the username and the password of the specific email account.



So, what is my options here ?



Regards,
'Skand Bhargava' skand@softoolsme.com [blat]
2016-05-14 07:53:55 UTC
Permalink
-u & -pw are for SMTP server which needs authentication. This information does not go to email recipient. Test by sending it to yourself.

Regards,

For Softools Middle East, A Dubai Based Company

Skand Bhargava
TAS2000 & HR2020: Serious Attendance & HR Systems
PO Box 14959, Dubai
Tel: +971 4 2680533, Mob: +971 50 6340258

-----Original Message-----
From: ***@yahoogroups.com [mailto:***@yahoogroups.com]
Sent: Friday, May 13, 2016 8:29 PM
To: ***@yahoogroups.com
Subject: RE: [blat] Using BLAT for sending application's Log Files



Hi,



Thank you for your answer. Maybe I did gave you a good explanation to my problem.


1st check my blat parameters.


blat - body "App.log report is attached." -subject "My App Log Report" -f ***@mycompany.gr -to ***@mycompany.gr -server mail.mycompany.gr -port 587 -u loguser -pw logpass123! -attacht app.log


This above script goes to EVERY client of ours. As you can see by yourself, to send an email from ***@mycompany.gr to ***@mycompany.gr I HAVE to entry the username as well as the password of the send mail which in this case is the ***@mycompany.gr.


This is a problem for my. I dont want my client to KNOW the username and the password of the specific email account.


So, what is m
sdancer75@yahoo.gr [blat]
2016-05-14 10:53:34 UTC
Permalink
Please read my post carefully.

BLAT application is distributed as a part of banch of files as an installation procedure of our own application to EVERY client, and in crash cases it sends HIS own (our customer) local log files to our company.


The problem is that our client maybe or maybe not have any email account. So we decided to use ONLY ours email accounts for both send and receive procedure, ie ***@mycompany.com that sends to ***@mycompany.com.


In this case we are exposed with username and password of the "sending" account witch in this case is the ***@mycompany.com


So I am asking, if blat or any other 3rd party plugin maybe use a cryptographic file that contains sensitive data.


Regards,
'Mike Mattos' mmattos@rogers.com [blat]
2016-05-14 16:31:26 UTC
Permalink
AN encrypted file would not run blat unless you send the client the key to unlock it, thus revealing the password.



Easiest thing is to set up a dedicated email account for the clients, either on your server or on a service. I don’t recommend google or yahoo or live since their spam filters could block similar emails!





Mike Mattos



“To succeed in the world it is not enough to be stupid, you must also be well-mannered”



Voltaire



From: ***@yahoogroups.com [mailto:***@yahoogroups.com]
Sent: May 14, 2016 6:54 AM
To: ***@yahoogroups.com
Subject: [Bulk] RE: [blat] Using BLAT for sending application's Log Files





Please read my post carefully.



BLAT application is distributed as a part of banch of files as an installation procedure of our own application to EVERY client, and in crash cases it sends HIS own (our customer) local log files to our company.





The problem is that our client maybe or maybe not have any email account. So we decided to use ONLY ours email accounts for both send and receive procedure, ie ***@mycompany.com that sends to ***@mycompany.com.



In this case we are exposed with username and password of the "sending" account witch in this case is the ***@mycompany.com



So I am asking, if blat or any other 3rd party plugin maybe use a cryptographic file that contains sensitive data.



Regards,
sdancer75@yahoo.gr [blat]
2016-05-15 08:38:43 UTC
Permalink
Easiest thing is to set up a dedicated email account for the clients, either on your server or on a service. >>I don’t recommend google or yahoo or live since their spam filters could block similar emails!
This is an option, but our clients are unlimited since this is a retail product. I thought to create a specific email account for that purpose but I am affraid of the abuse of this by sending for example SPAM mails. That's why I care about sensitive data.


I think that usings email accounts for sending crash reports is not the best solution in my case. I think I will move to an FTP upload solution or submit to a web form.
'Mike Mattos' mmattos@rogers.com [blat]
2016-05-15 11:44:07 UTC
Permalink
You could embed a security feature in your app ( serial number and date encryption ) and use that to access your web server and transfer via http. Would not need to be secure since your web server would only accept files with a valid key.



Mike Mattos



“To succeed in the world it is not enough to be stupid, you must also be well-mannered”



Voltaire



From: ***@yahoogroups.com [mailto:***@yahoogroups.com]
Sent: May 15, 2016 4:39 AM
To: ***@yahoogroups.com
Subject: RE: [Bulk] RE: [blat] Using BLAT for sending application's Log Files
Easiest thing is to set up a dedicated email account for the clients, either on your server or on a service. >>I don’t recommend google or yahoo or live since their spam filters could block similar emails!
This is an option, but our clients are unlimited since this is a retail product. I thought to create a specific email account for that purpose but I am affraid of the abuse of this by sending for example SPAM mails. That's why I care about sensitive data.



I think that usings email accounts for sending crash reports is not the best solution in my case. I think I will move to an FTP upload solution or submit to a web form.
'Ernest' EDixon5019@hotmail.com [blat]
2016-05-15 17:16:36 UTC
Permalink
As I have been reading this thread for the past few days I think someone already mentioned the solution that I would use, given this is a ‘retail product’ -
Get a domain to use for your BLAT emails. The mail-box names can belong to each client, or department within a client. Send your log information in an encrypted email to whoever you want to see the information. The mailbox name is assigned to your clients by you, the password on the email account is assigned by the client.

Never send information that could be confidential in an open text email. Either make it a picture or encoded /encrypted message. Too many people look for email with what may be confidential information in plain text within the emails, then hack the accounts later for the information to hack other accounts.

Ernest

From: mailto:***@yahoogroups.com
Sent: Sunday, May 15, 2016 16:38 PM
To: ***@yahoogroups.com
Subject: RE: [Bulk] RE: [blat] Using BLAT for sending application's Log Files
Easiest thing is to set up a dedicated email account for the clients, either on your server or on a service. >>I don’t recommend google or yahoo or live since their spam filters could block similar emails!
This is an option, but our clients are unlimited since this is a retail product. I thought to create a specific email account for that purpose but I am affraid of the abuse of this by sending for example SPAM mails. That's why I care about sensitive data.


I think that usings email accounts for sending crash reports is not the best solution in my case. I think I will move to an FTP upload solution or submit to a web form.
sdancer75@yahoo.gr [blat]
2016-05-15 17:56:49 UTC
Permalink
Thank you, all of you.

I find a custom solution for my problem. I will share it with you.


I changed the original source code of the BLAT and everytime it founds a specific smtp mail server ie mail.mycompany.com then it changes the sender, receiver, port, username and password directly from the code no matter what command line parameters are set. Of course the strings are encoded somehow to avoid a lightweight debugging.


Best Regards,
'Chip' chip.programmer@att.net [blat]
2016-05-15 18:46:31 UTC
Permalink
Post by ***@yahoo.gr [blat]
Thank you, all of you.
I find a custom solution for my problem. I will share it with you.
I changed the original source code of the BLAT and everytime it founds a specific smtp mail server ie mail.mycompany.com then it changes the sender, receiver, port, username and password directly from the code no matter what command line parameters are set. Of course the strings are encoded somehow to avoid a lightweight debugging.
Best Regards,
An alternative solution that I was going to suggest when I had a few moments, was to include the registry keys in your installation process so that the user need not be aware of your login credentials. The registry keys would include the server name and port, sender’s email address, userid and password for login. This allows you to continue using new versions of Blat without having to ensure your edits are included and not being blocked by anything I do to new versions.

Chip
'Mike Mattos' mmattos@rogers.com [blat]
2016-05-15 23:43:00 UTC
Permalink
Would stunnel be needed?



Mike Mattos



“To succeed in the world it is not enough to be stupid, you must also be well-mannered”



Voltaire



From: ***@yahoogroups.com [mailto:***@yahoogroups.com]
Sent: May 15, 2016 2:47 PM
To: ***@yahoogroups.com
Subject: RE: [blat] Using BLAT for sending application's Log Files
Post by ***@yahoo.gr [blat]
Thank you, all of you.
I find a custom solution for my problem. I will share it with you.
I changed the original source code of the BLAT and everytime it founds a specific smtp mail server ie mail.mycompany.com then it changes the sender, receiver, port, username and password directly from the code no matter what command line parameters are set. Of course the strings are encoded somehow to avoid a lightweight debugging.
Best Regards,
An alternative solution that I was going to suggest when I had a few moments, was to include the registry keys in your installation process so that the user need not be aware of your login credentials. The registry keys would include the server name and port, sender’s email address, userid and password for login. This allows you to continue using new versions of Blat without having to ensure your edits are included and not being blocked by anything I do to new versions.



Chip
sdancer75 sdancer75@yahoo.gr [blat]
2016-05-16 07:05:49 UTC
Permalink
No !

Thanks

G.Papaioannou
Sent from my iPhone
Post by 'Mike Mattos' ***@rogers.com [blat]
Would stunnel be needed?
Mike Mattos
“To succeed in the world it is not enough to be stupid, you must also be well-mannered”
Voltaire
Sent: May 15, 2016 2:47 PM
Subject: RE: [blat] Using BLAT for sending application's Log Files
Post by ***@yahoo.gr [blat]
Thank you, all of you.
I find a custom solution for my problem. I will share it with you.
I changed the original source code of the BLAT and everytime it founds a specific smtp mail server ie mail.mycompany.com then it changes the sender, receiver, port, username and password directly from the code no matter what command line parameters are set. Of course the strings are encoded somehow to avoid a lightweight debugging.
Best Regards,
An alternative solution that I was going to suggest when I had a few moments, was to include the registry keys in your installation process so that the user need not be aware of your login credentials. The registry keys would include the server name and port, sender’s email address, userid and password for login. This allows you to continue using new versions of Blat without having to ensure your edits are included and not being blocked by anything I do to new versions.
Chip
sdancer75 sdancer75@yahoo.gr [blat]
2016-05-16 07:08:57 UTC
Permalink
Yes I thought that, but I still believe that is also an insecure solution and I rejected immediately.

Thanks
Post by 'Chip' ***@att.net [blat]
Post by ***@yahoo.gr [blat]
Thank you, all of you.
I find a custom solution for my problem. I will share it with you.
I changed the original source code of the BLAT and everytime it founds a specific smtp mail server ie mail.mycompany.com then it changes the sender, receiver, port, username and password directly from the code no matter what command line parameters are set. Of course the strings are encoded somehow to avoid a lightweight debugging.
Best Regards,
An alternative solution that I was going to suggest when I had a few moments, was to include the registry keys in your installation process so that the user need not be aware of your login credentials. The registry keys would include the server name and port, sender’s email address, userid and password for login. This allows you to continue using new versions of Blat without having to ensure your edits are included and not being blocked by anything I do to new versions.
Chip
sdancer75@yahoo.gr [blat]
2016-06-21 10:14:57 UTC
Permalink
Hi,

Is there any way to ignore errors of attachments that are not found in the parameters list and continue with the rest of them ?

Regards,
Ernest EDixon5019@hotmail.com [blat]
2016-06-22 16:59:44 UTC
Permalink
My suggestion would be to write in a BAT file or another program to check to see if the file exists (IF EXIST filename Command) and to handle the BLAT command differently.

Maybe have a dummy attachment and if the real attachment does not exist then send the dummy attachment, something like when a document says “this page left blank intentionally”

Ernest



From: ***@yahoogroups.com [mailto:***@yahoogroups.com]
Sent: Tuesday, June 21, 2016 18:15 PM
To: ***@yahoogroups.com
Subject: Re: [blat] Ignore any attachments that is not found in the parameters list





Hi,

Is there any way to ignore errors of attachments that are not found in the parameters list and continue with the rest of them ?

Regards,
sdancer75@yahoo.gr [blat]
2016-06-23 09:27:29 UTC
Permalink
Yes, that's what I did already :-)



Anyway I had difficult time to compile BLAT using VS2012 and using XP toolkit (project Properties -> Configuration Properties -> Linker -> System -> SubSystem).

As I read in the MS tech support they know the bug that the specific compiler and below (I think is version 11), does not support definitions string lengths bigger then 32 chars in the Resource files. If you look inside blat resource file, there is an TCHAR include, that have such definitions.


Anyway I tried to recompile using Visual Studio 2015 (ver 14) with XP 14 toolkit. The problem I had is an exception error when I declare some buf variables like this

buf mailserver(_T("mail.xyz.com");
buf
buf
...
..

and this happened only in release mode and not in a specific declaration. Anyone does have ever meet such kind of problems under Visual Studio 2015 and XP toolkit ? I am not sure but without XP toolkit it works just fine. I debugged the code and raised an exception in file management (If I remember well it was about sharing permissions...)

PS:I am not in the office right now to copy/paste the offended code, but if you ask it for, i will do it to replicate the problem.
'Skand Bhargava' skand@softoolsme.com [blat]
2016-05-14 16:20:11 UTC
Permalink
Hi

One way out would be to create a gmail/yahoo account for each of your client. Since that email account belongs to your client, there is nothing to hide about

Regards,

For Softools Middle East, A Dubai Based Company

Skand Bhargava
TAS2000 & HR2020: Serious Attendance & HR Systems
PO Box 14959, Dubai
Tel: +971 4 2680533, Mob: +971 50 6340258

-----Original Message-----
From: ***@yahoogroups.com [mailto:***@yahoogroups.com]
Sent: Saturday, May 14, 2016 2:54 PM
To: ***@yahoogroups.com
Subject: RE: [blat] Using BLAT for sending application's Log Files



Please read my post carefully.



BLAT application is distributed as a part of banch of files as an installation procedure of our own application to EVERY client, and in crash cases it sends HIS own (our customer) local log files to our company.


The problem is that our client maybe or maybe not have any email ac count. So we decided to use ONLY ours email accounts for both send and receive procedure, ie ***@mycompany.com that sends to ***@mycompany.com.


In this case we are exposed with username and password of the "sending" account witch in this case is the ***@mycompany.com


So I am asking, if blat or any other 3rd party plugin maybe use a cryptographic file that contains sensiti ve data.<
Chip chip.programmer@att.net [blat]
2016-06-24 00:40:39 UTC
Permalink
I will try to check this after I return home this weekend.

Chip

<div>-------- Original message --------</div><div>From: "***@yahoo.gr [blat]" <***@yahoogroups.com> </div><div>Date:06/23/2016 3:27 AM (GMT-07:00) </div><div>To: ***@yahoogroups.com </div><div>Subject: RE: [blat] Ignore any attachments that is not found in the parameters list </div><div>
</div>

Yes, that's what I did already :-)



Anyway I had difficult time to compile BLAT using VS2012 and using XP toolkit (project Properties -> Configuration Properties -> Linker -> System -> SubSystem).

As I read in the MS tech support they know the bug that the specific compiler and below (I think is version 11), does not support definitions string lengths bigger then 32 chars in the Resource files. If you look inside blat resource file, there is an TCHAR include, that have such definitions.


Anyway I tried to recompile using Visual Studio 2015 (ver 14) with XP 14 toolkit. The problem I had is an exception error when I declare some buf variables like this

buf mailserver(_T("mail.xyz.com");
buf
buf
...
..

and this happened only in release mode and not in a specific declaration. Anyone does have ever meet such kind of problems under Visual Studio 2015 and XP toolkit ? I am not sure but without XP toolkit it works just fine. I debugged the code and raised an exception in file management (If I remember well it was about sharing permissions...)

PS:I am not in the office right now to copy/paste the offended code, but if you ask it for, i will do it to replicate the problem.
'Chip' chip.programmer@att.net [blat]
2016-06-26 04:53:22 UTC
Permalink
Post by ***@yahoo.gr [blat]
Yes, that's what I did already :-)
Anyway I had difficult time to compile BLAT using VS2012 and using XP toolkit (project Properties -> Configuration Properties -> Linker -> System -> SubSystem).
As I read in the MS tech support they know the bug that the specific compiler and below (I think is version 11), does not support definitions string lengths bigger then 32 chars in the Resource files. If you look inside blat resource file, there is an TCHAR include, that have such definitions.
Anyway I tried to recompile using Visual Studio 2015 (ver 14) with XP 14 toolkit. The problem I had is an exception error when I declare some buf variables like this
buf mailserver(_T("mail.xyz.com");
buf
buf
...
..
and this happened only in release mode and not in a specific declaration. Anyone does have ever meet such kind of problems under Visual Studio 2015 and XP toolkit ? I am not sure but without XP toolkit it works just fine. I debugged the code and raised an exception in file management (If I remember well it was about sharing permissions...)
PS:I am not in the office right now to copy/paste the offended code, but if you ask it for, i will do it to replicate the problem.
buf mailserver(_T("mail.xyz.com");
This above statement says that you have function called mailserver() that takes one string argument, and returns a buf class. I expect what you wanted is:
Buf mailserver;
mailserver = _T("mail.xyz.com");
This does two things. The first statement declares the variable and calls the Buf class constructor to initialize the variable. The next statement then sets the variable’s array to the string.
When compiling for Release mode, the compiler takes some liberties with variable declarations and initialization, while the Debug mode does not.
I do not have the XP toolkit available with my Visual Studio 2010 installation. Therefore, I am not able to test what you are. However, I am curious what you are trying to accomplish that cannot be done simply by compiling for 32-bit with Unicode enabled?
Chip
sdancer75 sdancer75@yahoo.gr [blat]
2016-06-26 06:41:57 UTC
Permalink
Hi

Thank you for your reply. As I said I compile with visual studio 2015 because I had compiling problems with VS2012 Xp toolkit. I am using Xp toolkit because compiling under Unicode and without Xp toolkit simply, blat does not run under windows Xp.
Post by 'Chip' ***@att.net [blat]
Yes, that's what I did already :-)
Anyway I had difficult time to compile BLAT using VS2012 and using XP toolkit (project Properties -> Configuration Properties -> Linker -> System -> SubSystem).
As I read in the MS tech support they know the bug that the specific compiler and below (I think is version 11), does not support definitions string lengths bigger then 32 chars in the Resource files. If you look inside blat resource file, there is an TCHAR include, that have such definitions.
Anyway I tried to recompile using Visual Studio 2015 (ver 14) with XP 14 toolkit. The problem I had is an exception error when I declare some buf variables like this
buf mailserver(_T("mail.xyz.com");
buf
buf
...
..
and this happened only in release mode and not in a specific declaration. Anyone does have ever meet such kind of problems under Visual Studio 2015 and XP toolkit ? I am not sure but without XP toolkit it works just fine. I debugged the code and raised an exception in file management (If I remember well it was about sharing permissions...)
PS:I am not in the office right now to copy/paste the offended code, but if you ask it for, i will do it to replicate the problem.
buf mailserver(_T("mail.xyz.com");
Buf mailserver;
mailserver = _T("mail.xyz.com");
This does two things. The first statement declares the variable and calls the Buf class constructor to initialize the variable. The next statement then sets the variable’s array to the string.
When compiling for Release mode, the compiler takes some liberties with variable declarations and initialization, while the Debug mode does not.
I do not have the XP toolkit available with my Visual Studio 2010 installation. Therefore, I am not able to test what you are. However, I am curious what you are trying to accomplish that cannot be done simply by compiling for 32-bit with Unicode enabled?
Chip
'Chip' chip.programmer@att.net [blat]
2016-06-27 00:59:50 UTC
Permalink
Post by sdancer75 ***@yahoo.gr [blat]
Hi
Thank you for your reply. As I said I compile with visual studio 2015 because I had compiling problems with VS2012 Xp toolkit. I am using Xp toolkit because compiling under Unicode and without Xp toolkit simply, blat does not run under windows Xp.
Does the Unicode executable that I release run with Windows XP for you? I happen to have Windows XP on a drive, but I have not fired it up for some time.

Are you making changes to the source that you would like to see in an official release? I have to get another release out tonight, but I can possibly include suggestions in a future release.

Chip
sdancer75 sdancer75@yahoo.gr [blat]
2016-06-27 12:18:02 UTC
Permalink
Hi chip

Your Unicode release does not run under windows Xp. My changes to your code is a hard coded base64 encoded mail server, port, username and password in case blat find a specific mail server in the command line parameters.

I would like blat in a feature release to read all critical parameters from an encoded file (custom encoding) and receive only key string to be able to decode.

I would also blat to ignore any file attachment that does not exist instead of quitting prompting the user to fix the problem .


G.Papaioannou
Sent from my iPhone
Post by 'Chip' ***@att.net [blat]
Post by sdancer75 ***@yahoo.gr [blat]
Hi
Thank you for your reply. As I said I compile with visual studio 2015 because I had compiling problems with VS2012 Xp toolkit. I am using Xp toolkit because compiling under Unicode and without Xp toolkit simply, blat does not run under windows Xp.
Does the Unicode executable that I release run with Windows XP for you? I happen to have Windows XP on a drive, but I have not fired it up for some time.
Are you making changes to the source that you would like to see in an official release? I have to get another release out tonight, but I can possibly include suggestions in a future release.
Chip
'Skand Bhargava' skand@softoolsme.com [blat]
2017-01-01 20:36:50 UTC
Permalink
Hi

Can we send stationery style emails using blat? I wish some sort of artwork as a background of the whole email body.

I do not think embed will work because I am assuming that text fill flow around the embedded image.

Regards,

Skand
Chip chip.programmer@att.net [blat]
2017-01-01 21:37:32 UTC
Permalink
Yes, in your html you need to define the background image and use the cid: tag to tell the renderor to get the image from your embedded attachment.  A foreground image could have text around it, but background images are different.

I will look up the syntax shortly.

Chip



<div>-------- Original message --------</div><div>From: "'Skand Bhargava' ***@softoolsme.com [blat]" <***@yahoogroups.com> </div><div>Date:01/01/2017 1:36 PM (GMT-07:00) </div><div>To: ***@yahoogroups.com </div><div>Subject: [blat] Stationery </div><div>
</div>

Hi

Can we send stationery style emails using blat? I wish some sort of artwork as a background of the whole email body.

I do not think embed will work because I am assuming that text fill flow around the embedded image.

Regards,

Skand
'Chip' chip.programmer@att.net [blat]
2017-01-01 22:09:20 UTC
Permalink
Post by Chip ***@att.net [blat]
Post by 'Skand Bhargava' ***@softoolsme.com [blat]
Hi
Can we send stationery style emails using blat? I wish some sort of
artwork as a background of the whole email body.
I do not think embed will work because I am assuming that text fill flow
around the embedded image.
Regards,
Skand
tag to tell the renderor to get the image from your embedded attachment.
A foreground image could have text around it, but background images are
different.
I will look up the syntax shortly.
Chip
This link http://www.w3schools.com/tags/att_body_background.asp shows how to
specify the background image. However, the first example presumes a web
based image. To use an embedded image, use the cid: reference.

Here is the first example from the above link:

<html>
<body background="bgimage.jpg">
<h1>Hello world!</h1>
<p><a href="http://www.w3schools.com">Visit W3Schools.com!</a></p>
</body>
</html>


Here it is with the cid: reference. You can then include your background
image with -embed option.

<html>
<body background="cid:bgimage.jpg">
<h1>Hello world!</h1>
<p><a href="http://www.w3schools.com">Visit W3Schools.com!</a></p>
</body>
</html>

Chip



-------- Original message --------
From: "'Skand Bhargava' ***@softoolsme.com [blat]"
Date:01/01/2017 1:36 PM (GMT-07:00)
To: ***@yahoogroups.com
Subject: [blat] Stationery

Hi

Can we send stationery style emails using blat? I wish some sort of artwork
as a background of the whole email body.

I do not think embed will work because I am assuming that text fill flow
around the embedded image.

Regards,

Skand
'Skand Bhargava' skand@softoolsme.com [blat]
2017-01-02 06:43:36 UTC
Permalink
Dear Chip

Thanks for the prompt response. In these examples:

1. Is it implied that the file "bgimage.jpg" is residing in the root of http://www.w3schools.com website?
2. While in first example the file will be picked up from a website when recipient opens the email, in second the image will become part of the email itself (and making the email bulkier)?

Regards,



For Softools Middle East, A Dubai Based Company

Skand Bhargava
TAS2000 & HR2020: Serious Attendance & HR Systems
PO Box 14959, Dubai
Tel: +971 4 2680533, Mob: +971 50 6340258

-----Original Message-----
From: ***@yahoogroups.com [mailto:***@yahoogroups.com]
Sent: Monday, January 02, 2017 2:09 AM
To: ***@yahoogroups.com
Subject: Re: [blat] Stationery
Post by Chip ***@att.net [blat]
Post by 'Skand Bhargava' ***@softoolsme.com [blat]
Hi
Can we send stationery style emails using blat? I wish some sort of
artwork as a background of the whole email body.
I do not think embed will work because I am assuming that text fill flow
around the embedded image.
Regards,
Skand
tag to tell the renderor to get the image from your embedded attachment.
A foreground image could have text around it, but background images are
different.
I will look up the syntax shortly.
Chip
This link http://www.w3schools.com/tags/att_body_background.asp shows how to
specify the background image. However, the first example presumes a web
based image. To use an embedded image, use the cid: reference.

Here is the first example from the above link:

<html>
<body background="bgimage.jpg">
<h1>Hello world!</h1>
<p><a href="http://www.w3schools.com">Visit W3Schools.com!</a></p>
</body>
</html>

Here it is with the cid: reference. You can then include your background
image with -embed option.

<html>
<body background="cid:bgimage.jpg">
<h1>Hello world!</h1>
<p><a href="http://www.w3schools.com">Visit W3Schools.com!</a></p>
</body>
</html>

Chip

-------- Original message --------
From: "'Skand Bhargava' ***@softoolsme.com [blat]"
Date:01/01/2017 1:36 PM (GMT-07:00)
To: ***@yahoogroups.com
Subject: [blat] Stationery

Hi

Can we send stationery style emails using blat? I wish some sort of artwork
as a background of the whole email body.

I do not think embed will work because I am assuming that text fill flow
around the embedded image.

Regards,

Skand
'Chip' chip.programmer@att.net [blat]
2017-01-02 18:18:55 UTC
Permalink
Post by 'Skand Bhargava' ***@softoolsme.com [blat]
Dear Chip
1. Is it implied that the file "bgimage.jpg" is residing in the root of
http://www.w3schools.com website?
2. While in first example the file will be picked up from a website when
recipient opens the email, in second the image will become part of the
email itself (and making the email bulkier)?
Regards,
The second example is what you are needing, it says the image is in the
email itself.

Chip
'Skand Bhargava' skand@softoolsme.com [blat]
2017-01-02 18:39:37 UTC
Permalink
Thanks. Tested successfully.

Skand
-----Original Message-----
From: ***@yahoogroups.com [mailto:***@yahoogroups.com]
Sent: Monday, January 02, 2017 10:19 PM
To: ***@yahoogroups.com
Subject: Re: [blat] Stationery
Post by 'Skand Bhargava' ***@softoolsme.com [blat]
Dear Chip
1. Is it implied that the file "bgimage.jpg" is residing in the root of
http://www.w3schools.com website?
2. While in first example the file will be picked up from a website when
recipient opens the email, in second the image will become part of the
email itself (and making the email bulkier)?
Regards,
The second example is what you are needing, it says the image is in the
email itself.

Chip
'Skand Bhargava' skand@softoolsme.com [blat]
2017-01-02 21:26:16 UTC
Permalink
I tested with command line. I also created a HTML file (using -bodyF)

Then I tried to put into my VBA code using blat.dll (as I have been doing for many years) using the HTML file part as inline using just -body. This is not working. Must I create HTML file?

Also will <a href="C:\Test"></a> work if my image file is in C:\Test folder?

Skand

-----Original Message-----
From: Skand Bhargava [mailto:***@softoolsme.com]
Sent: Monday, January 02, 2017 10:40 PM
To: '***@yahoogroups.com'
Subject: RE: [blat] Stationery


Thanks. Tested successfully.

Skand
-----Original Message-----
From: ***@yahoogroups.com [mailto:***@yahoogroups.com]
Sent: Monday, January 02, 2017 10:19 PM
To: ***@yahoogroups.com
Subject: Re: [blat] Stationery
Post by 'Skand Bhargava' ***@softoolsme.com [blat]
Dear Chip
1. Is it implied that the file "bgimage.jpg" is residing in the root of
http://www.w3schools.com website?
2. While in first example the file will be picked up from a website when
recipient opens the email, in second the image will become part of the
email itself (and making the email bulkier)?
Regards,
The second example is what you are needing, it says the image is in the
email itself.

Chip
'John K.Eason' yahoo@john-eason.co.uk [blat]
2017-01-02 22:04:00 UTC
Permalink
Post by 'Skand Bhargava' ***@softoolsme.com [blat]
Also will <a href="C:\Test"></a> work if my image file is in
C:\Test folder?
No because it will try to find the image in the C:\Test folder on the
recipient's machine, not on yours. You either have to embed the image in
the email as Chip demonstrated or retrieve it from a web address on your
Post by 'Skand Bhargava' ***@softoolsme.com [blat]
1. Is it implied that the file "bgimage.jpg" is residing in the
root of http://www.w3schools.com website?
Change http://www.w3schools.com to a location on your own website where
the image resides (assuming you have one). That's why it's easier to
embed the image in the email.
--
Regards
John
Loading...