Dne 8.10.2015 v 0:36 MFPA napsal(a):
Hi


On Wednesday 7 October 2015 at 3:14:54 AM, in
<mid:1888312682.20151007091...@gmx.net>, Thomas Fernandez wrote:


Hello Lore,

On Tue, 6 Oct 2015 14:11:29 -0700 GMT (07-Oct-15, 04:11
+0700 GMT), Lore Galore wrote:

On 10/6/2015 11:24 AM, Petr Laznovsky wrote:
Have internal web system with different type of customers. Want to
mail to customer using Thebat! but different type of customer need
different thebat! profiles (different sender address, signature,
etc..). Thebat should be started by clicking on link in web system,
now I using 'mailto:' URI for default profile, but I can specify
another URI for different profile.

Is such solution possible?

       You can set up multiple email accounts in The
Bat!, with one being primary/default.  When compose
window is open, you can look at the  bottom border of
the window and see the name of your default mail
account.  Clicking that shows all configured mail
accounts to choose  from, but choose it before you
type anything.

I cannot write any Regular Expressions, but they keep
impression me. I would think that a RegEx can parse the
URI for something you code into it, and then issue a
command "choose account". That would do the same thing
but automated.


Maybe it could be even simpler with AddressBook Group templates. For
one type of customer, all the customer email addresses go in a
specific AB Group. You set up the AB group templates to take care of
the sender address, signature, etc. Then, when you follow your Mailto:
link for a customer whose email address is in that AB Group, the
right template should be used. (If their address is in multiple AB
Groups, this won't work.)

Alternatively, take a look at "Command Line Parameters" in TB!'s help
file and see if /mail or /mailto might help you.


Have defined custom protocol 'testprot' in windows 7 by following registry 
entry:

"C:\Program Files (x86)\The Bat!\thebat.exe" 
"/MAILU=testprot;TO=%1;S=Test;TEXT=c:\work\template.txt"

in 'HKEY_CLASSES_ROOT\testprot\shell\open\command' registry path.
In my web application have following link:

<a href="testprot://mail...@host.com">mail...@host.com</a>

clik on link perform (if not started yet) start TheBat!, create mail by template and put it in the Outbox folder, but such string 'testprot://mail...@host.com' is putted in 'To:' box, insted of recipients address only. Changing registry string to '/MAILTOU' cause same behaviour but mail goes into output folder of default profile, not the specified profile.

How could I achieve the created message is opened in 'edit message' window on focus with correct recipient address?

L.


________________________________________________
Current version is 6.6 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to