MAPI Calls?

2001-01-12 Thread Gerry Doyon

Hello Everyone!

It is my understanding that I can "communicate with TB!
programmatically by calling MAPI functions using "TBMAPI.DLL".

Does anyone have any knowledge as to what calls have been exposed and
what their calling convention is?

My goal is to be able to "feed" TB! messages to send without having to
run TB! with command line options to create/send this message for EACH
message I want to send.

In other words, another application will be created the a message in
text and I want to be able to read this text file in and feed it to
TB!

Is there a better way to do this?  This is not a mass mailing sort of
thing where the text of each message is the same.  Each message will
be completely different and go to different people.

Thanks!

-- 
Best regards,
 Gerry Doyon mailto:[EMAIL PROTECTED]

 Using TB! v1.49(personal)

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   
To Unsubscribe from TBUDL, double click here and send the message:
   
--

You are subscribed as : archive@jab.org





Re: MAPI Calls?

2001-01-12 Thread George F Schoelles

-BEGIN PGP SIGNED MESSAGE-

Hello Gerry,

Friday, January 12, 2001, 5:33:58 AM, you wrote:

GD> Hello Everyone!

GD> It is my understanding that I can "communicate with TB!
GD> programmatically by calling MAPI functions using "TBMAPI.DLL".

GD> Does anyone have any knowledge as to what calls have been exposed and
GD> what their calling convention is?

GD> My goal is to be able to "feed" TB! messages to send without having to
GD> run TB! with command line options to create/send this message for EACH
GD> message I want to send.

GD> In other words, another application will be created the a message in
GD> text and I want to be able to read this text file in and feed it to
GD> TB!

GD> Is there a better way to do this?  This is not a mass mailing sort of
GD> thing where the text of each message is the same.  Each message will
GD> be completely different and go to different people.

GD> Thanks!


1   TB must be open for mapi to work as with ant mapi mail client.

2   It sounds like you need a simple smtp utility like the one I
found from http://www.olegsoft.agava.ru .

Hope that helps.

- --
Best regards,
 George   mailto:[EMAIL PROTECTED]

**
*Thawte authorized WOT Notary  * ICQ: 122492 *
**

Clones are people two.

Finger: [EMAIL PROTECTED] for keys

-BEGIN PGP SIGNATURE-
Version: 2.6.2
Comment: Use PGP to protect your rights and authenticity
Comment: KeyID: 0x360563A92F592AB1
Comment: Fingerprint: 84EE 29D7 0B3F 04F5  848A 2746 DD6F 60C5

iQEVAwUBOl8LrTYFY6kvWSqxAQGwNggAuV4uHUg/qSyDjjipWQvwxD0MrG5/B+o0
b3Mg8+wBxsUA+kh7OK4DClENhIWPFbcMpGKkLBI8axc0UWsH7314/8tU+ZUz8UU7
wINFdy+YdiTFFiiyg0VJMjE6oXsZDqYotjiFKm1wxoxdMG43FvF5sczP6eZUFYGm
+cuhNFZqdFRKnbn1qG8vZFmJcRQiodHu3GwJpfYZ2CQ9dnCvmjg8JekL5/ADMxua
Wq2SmXy7Ruwwwmn7Jf3DVrF3b0gGA/brXZBn//Q0WPJJ9I/0Va5/RrvoodFTLrzL
R04ppc/3lNYs7ryFGAqKoZ5Ene2HsYGlVt+btdahTO4Dc0NiVhHhnA==
=Rd4L
-END PGP SIGNATURE-

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   
To Unsubscribe from TBUDL, double click here and send the message:
   
--

You are subscribed as : archive@jab.org





Re: MAPI Calls?

2001-01-12 Thread A . Curtis Martin

On Fri, 12 Jan 2001 05:50:39 -0800, George contributed this to our
collective wisdom:

GFS> 1 TB must be open for mapi to work as with ant mapi mail client.

Are you sure about this? I just did an MAPI call with TextPad which
launched TB! and opened a new message. Or am I misunderstanding you?

-- 
@~@@~@
 | A. Curtis Martin  [List Moderator TBUDL/TBBETA]  |
 | PGPKey: mailto:[EMAIL PROTECTED]?Subject=SendAlliePGPKey |   
@_@   (Opinions given are mine and not those of RITLABS)   @_@
__
TB! v1.49b | Windows NT 5.00.2195 (Service Pack 1)

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   
To Unsubscribe from TBUDL, double click here and send the message:
   
--

You are subscribed as : archive@jab.org





Re: MAPI Calls?

2001-01-12 Thread Gerry Doyon

Hello George

Friday, January 12, 2001, 8:50:39 AM, you wrote:

GFS> 1   TB must be open for mapi to work as with ant mapi mail client.

I understand.

GFS> 2   It sounds like you need a simple smtp utility like the one I
GFS> found from http://www.olegsoft.agava.ru .

Thanks.  I will look in to that!

-- 
Best regards,
 Gerrymailto:[EMAIL PROTECTED]

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   
To Unsubscribe from TBUDL, double click here and send the message:
   
--

You are subscribed as : archive@jab.org





Re: MAPI Calls?

2001-01-12 Thread A . Curtis Martin

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, 12 Jan 2001 06:07:17 -0800, George wrote these words of
wisdom:

ACM>> Are you sure about this? I just did an MAPI call with TextPad
ACM>> which launched TB! and opened a new message. Or am I
ACM>> misunderstanding you?

GFS> It launched TB which is open, right?  And it was my understanding
GFS> you did not want to open TB, hence my suggestion.

Actually, my concern is the reverse. I almost always have TB! open but
in the event that I don't, I wish for the MAPI call to open the TB!
editor window as it should.

- --
@~@@~@
 | A. Curtis Martin  [List Moderator TBUDL/TBBETA]  |
 | PGPKey: mailto:[EMAIL PROTECTED]?Subject=SendAlliePGPKey |
@_@   (Opinions given are mine and not those of RITLABS)   @_@
__
TB! v1.49b | Windows NT 5.00.2195 (Service Pack 1)

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8
Comment: Digitally signed for sender and message authentication.

iQA/AwUBOl8bBlfJ62ArBxfiEQJIPgCg4J5QavYDmzEWNyQvHuAnbjbgTPoAnRUM
SCBvzea9M0vr65lxULvOMJM8
=eiZt
-END PGP SIGNATURE-

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   
To Unsubscribe from TBUDL, double click here and send the message:
   
--

You are subscribed as : archive@jab.org





Re: MAPI Calls?

2001-01-12 Thread Januk Aggarwal

Hello Gerry,

GD = Gerry Doyon 

On  Fri, 12 Jan 2001  at  08:33:58 GMT -0500 (which was 5:33 AM where
I live) witnesses say Gerry Doyon typed:

GD> My goal is to be able to "feed" TB! messages to send without having to
GD> run TB! with command line options to create/send this message for EACH
GD> message I want to send.

GD> In other words, another application will be created the a message in
GD> text and I want to be able to read this text file in and feed it to
GD> TB!

I'm not sure I'm understanding why the command line is not desirable.
If I understand correctly (I probably don't), you are creating the
message completely in your other program, and you want to import it
into the outbox to send, right?  If that is the case, have you tried
the /mail switch with the Text= option?

Of course using the /mail switch does not open the editor, so
depending on how much can be defined by the calling program, this may
not be appropriate.

If you don't mind sending the text file as an attachment, you could
always call TB with the filename as a parameter,
eg. "thebat.exe message.txt".

Are unique names used for the file names?  How much of the message is
defined by the calling program (eg Headers, Body, etc)?

Could you create a folder with a template that includes a temp file,
and use the /Focus option to use this folder from your calling
program?  Then you'd just need some tiny txt file to drop into the
folder to create a new message.

-- 
Thanks for writing,
 Januk Aggarwal

 Using The Bat! 1.49
 under Windows 98 4.10 Build   A 

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   
To Unsubscribe from TBUDL, double click here and send the message:
   
--

You are subscribed as : archive@jab.org





Re: MAPI Calls?

2001-01-16 Thread Thomas

Hallo Gerry,

On Tue, 16 Jan 2001 14:20:37 -0500 GMT (17/01/2001, 03:20 +0800 GMT),
Gerry Doyon wrote:

JA>> If you don't mind sending the text file as an attachment, you could
JA>> always call TB with the filename as a parameter,
JA>> eg. "thebat.exe message.txt".

Gerry> Yep, good idea if I were to mass mail everyone using the same text
Gerry> body of the message, but I am not. :-(

I'm not sure it works, but if each individual message creates this command line,
then TB should send them all. If TB is still open when the new command
arrives, it should stay open and execute the command.

Caveat: If you use the /nologo switch. it must be at the last of any
command paramters. As I have just learned from the German list, TB
will not work if the /nologo switch is the first parameter and TB is
already open. New problem only discovered with v1.49.

-- 

Cheers,
Thomas.

Outside a Hong Kong tailor shop: Ladies may have a fit upstairs. 

Message reply created with The Bat! 1.49c
under Chinese Windows 98 4.10 Build 1998 
using an Intel Celeron 366Mhz, 128MB RAM



-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   
To Unsubscribe from TBUDL, double click here and send the message:
   
--

You are subscribed as : archive@jab.org





Re: MAPI Calls?

2001-01-16 Thread Januk Aggarwal

Hello Gerry,

Historians believe that on Tue, 16 Jan 2001 at 14:20:37 GMT -0500,
Gerry Doyon [GD] typed:

GD> The thing is, I  may have dozens, if not more, messages to send at a
GD> given time and I think it would be rather kludgy to run TB! each time
GD> to send out each of the messages.

I see what you mean, but as Thomas pointed out, the command line
offers the flexibility that TB can be open or closed when you issue
the command.

GD> Yep, good idea if I were to mass mail everyone using the same text
GD> body of the message, but I am not. :-(

Ok, I don't think I understand how the calling program works.  I'm
just going by what I've done in the past.  In my case, it was easier
to create unique text files than to execute a MAPI call.

It was also fairly easy to create dynamic system calls.  So I could
vary the filename in the command line at runtime.

GD> I am not sure I understand this last point.

I wasn't too clear.  The /Focus option lets you choose the folder you
want in focus.  If you are focused on a folder which has folder level
templates, then creating a message will use that folder level
template.  This probably isn't the best option for your purpose.


 

-- 
Thanks for writing,
 Januk Aggarwal

 Using The Bat! 1.49c under Windows 98 4.10 Build   A

 I was the next door kid's imaginary friend.

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   
To Unsubscribe from TBUDL, double click here and send the message:
   
--

You are subscribed as : archive@jab.org





Re: MAPI Calls?

2001-01-17 Thread Thomas

Hallo Gerry,

On Wed, 17 Jan 2001 08:21:30 -0500 GMT (17/01/2001, 21:21 +0800 GMT),
Gerry Doyon wrote:

GD> Gotcha. I'll just experiment some.  I am looking forward to the new
GD> release of TB! as I understand(assume?) that it will have a scripting
GD> language, or be able to support one?

Judging from the question mark, this is a question? - The answer is
"yes" (it will support). ;-)

-- 

Cheers,
Thomas.
Co-Moderator der deutschsprachigen The Bat! Beginner Liste.

In a Norwegian cocktail lounge: Ladies are requested not to have children in the bar. 

Message reply created with The Bat! 1.49c
under Chinese Windows 98 4.10 Build 1998 
using an Intel Celeron 366Mhz, 128MB RAM



-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   
To Unsubscribe from TBUDL, double click here and send the message:
   
--

You are subscribed as : archive@jab.org





Re[2]: MAPI Calls?

2001-01-12 Thread George F Schoelles

-BEGIN PGP SIGNED MESSAGE-

Hello A,

Friday, January 12, 2001, 5:57:26 AM, you wrote:

GFS>> 1 TB must be open for mapi to work as with ant mapi mail client.

ACM> Are you sure about this? I just did an MAPI call with TextPad which
ACM> launched TB! and opened a new message. Or am I misunderstanding you?

It launched TB which is open, right?  And it was my understanding you
did not want to open TB, hence my suggestion.

- --
Best regards,
 George   mailto:[EMAIL PROTECTED]

**
*Thawte authorized WOT Notary  * ICQ: 122492 *
**

Fall seven times, stand up eight. 

Finger: [EMAIL PROTECTED] for keys

-BEGIN PGP SIGNATURE-
Version: 2.6.2
Comment: Use PGP to protect your rights and authenticity
Comment: KeyID: 0x360563A92F592AB1
Comment: Fingerprint: 84EE 29D7 0B3F 04F5  848A 2746 DD6F 60C5

iQEVAwUBOl8PijYFY6kvWSqxAQGZfwf/QRG19rvBbGR/bqkcC33aVR3YEGoTnnJi
rxTbWzvqGcD2fwuw6Cm2fmXpygpctHlAal1VbSoCWE/7id+gRQgzlxfyh3PCmYL9
VeqIYtgRmzMKHgSCO6K+hNCpC9WudgN9HkafON9GN2b2/rhKi3hd8diZhHsz53lz
X/vZaJWubkDnjVnOLLusASPowxCczekz1YAVOHzu/cd9HZxqsKRBik8mLe80shhz
ZeEqynhhxd0avGxbjQnxR9+d0bzxwHxysXySOwrc2g3191Yq1qfFK9zJEjL3ok+t
+jmSbdZJ9qhNRiKRNhIzFdcNce1G6bJIaN2jF+3Ys6TOM290bJdD9g==
=Dbo9
-END PGP SIGNATURE-

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   
To Unsubscribe from TBUDL, double click here and send the message:
   
--

You are subscribed as : archive@jab.org





Re[3]: MAPI Calls?

2001-01-12 Thread Gerry Doyon

Hi George,

You might be confusing me with the response from A. Curtis Martin. :-)

Friday, January 12, 2001, 9:07:17 AM, you wrote:

ACM>> Are you sure about this? I just did an MAPI call with TextPad which
ACM>> launched TB! and opened a new message. Or am I misunderstanding you?

GFS> It launched TB which is open, right?  And it was my understanding you
GFS> did not want to open TB, hence my suggestion.

I personally don't mind having TB! already open.

-- 
Best regards,
 Gerrymailto:[EMAIL PROTECTED]

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   
To Unsubscribe from TBUDL, double click here and send the message:
   
--

You are subscribed as : archive@jab.org





Re[4]: MAPI Calls?

2001-01-12 Thread George F Schoelles

Hello Gerry,

Friday, January 12, 2001, 6:12:24 AM, you wrote:

GFS>> It launched TB which is open, right?  And it was my understanding you
GFS>> did not want to open TB, hence my suggestion.

GD> I personally don't mind having TB! already open.

Ooops sorry ~;-|

--
Best regards,
 George   mailto:[EMAIL PROTECTED]

**
*Thawte authorized WOT Notary  * ICQ: 122492 *
**

Tell me who's your friend and I'll tell you who you are. 

Finger: [EMAIL PROTECTED] for keys

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   
To Unsubscribe from TBUDL, double click here and send the message:
   
--

You are subscribed as : archive@jab.org





Re[2]: MAPI Calls?

2001-01-16 Thread Gerry Doyon



Friday, January 12, 2001, 9:44:58 PM, you wrote:

GD>> My goal is to be able to "feed" TB! messages to send without having to
GD>> run TB! with command line options to create/send this message for EACH
GD>> message I want to send.

JA> I'm not sure I'm understanding why the command line is not desirable.
JA> If I understand correctly (I probably don't), you are creating the
JA> message completely in your other program, and you want to import it
JA> into the outbox to send, right?  If that is the case, have you tried
JA> the /mail switch with the Text= option?

The thing is, I  may have dozens, if not more, messages to send at a
given time and I think it would be rather kludgy to run TB! each time
to send out each of the messages.

JA> If you don't mind sending the text file as an attachment, you could
JA> always call TB with the filename as a parameter,
JA> eg. "thebat.exe message.txt".

Yep, good idea if I were to mass mail everyone using the same text
body of the message, but I am not. :-(

JA> Are unique names used for the file names?  How much of the message is
JA> defined by the calling program (eg Headers, Body, etc)?

ALL of the message is defined by the calling program.  Yes, unique
names(filenames) are used.

JA> Could you create a folder with a template that includes a temp file,
JA> and use the /Focus option to use this folder from your calling
JA> program?  Then you'd just need some tiny txt file to drop into the
JA> folder to create a new message.

I am not sure I understand this last point.


-- 
Best regards,
 Gerrymailto:[EMAIL PROTECTED]

 The Bat! v1.49

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   
To Unsubscribe from TBUDL, double click here and send the message:
   
--

You are subscribed as : archive@jab.org





Re[2]: MAPI Calls?

2001-01-16 Thread Gerry Doyon

Hi Thomas,

Tuesday, January 16, 2001, 2:37:53 PM, you wrote:

T> I'm not sure it works, but if each individual message creates this command line,
T> then TB should send them all. If TB is still open when the new command
T> arrives, it should stay open and execute the command.

Maybe I'll just leave it up and running. The Bat!, that is.

T> Caveat: If you use the /nologo switch. it must be at the last of any
T> command paramters. As I have just learned from the German list, TB
T> will not work if the /nologo switch is the first parameter and TB is
T> already open. New problem only discovered with v1.49.

Hm...very interesting.  Thanks for the tip!



-- 
Best regards,
 Gerrymailto:[EMAIL PROTECTED]

-- 
--
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   
To Unsubscribe from TBUDL, double click here and send the message:
   
--

You are subscribed as : archive@jab.org





Which account for MAPI calls?

2002-09-26 Thread Markus Gloede

Hi,

I know I can set which account handles mailto: URLs, but can I also
change which account handles MAPI (send to) calls? It seems that only
my first account in my list of accounts gets used. Any ideas?

Regards,

Markus
-- 
Using The Bat! 1.62/Beta5 under Windows NT 4.0 Build
1381 Service Pack 6



Current version is 1.61 | "Using TBUDL" information:
http://www.silverstones.com/thebat/TBUDLInfo.html



Re: Which account for MAPI calls?

2002-09-26 Thread Markus Gloede

Hi,

I in msgid:[EMAIL PROTECTED] :

> It seems that only my first account in my list of accounts gets
> used. Any ideas?

Well, I tried moving another account to the top but that didn't help.
It seems the Bat uses the first account that has been created. :(

Regards,

Markus
-- 
Using The Bat! 1.62/Beta5 under Windows NT 4.0 Build
1381 Service Pack 6 



Current version is 1.61 | "Using TBUDL" information:
http://www.silverstones.com/thebat/TBUDLInfo.html