Pages: 1
RSS
Command line to open a new message with an attachement
 
Hi,

Is there a way of opening a new message window from the command prompt and include an attachment like this:


thebat /new /attachment:report.pdf /email:123@abc.com


I'm using BAT 4.0.38 Pro


Thanks,
Andy
Thank you,
Andy

Team work makes the dream work.

The BAT! 6.7.36 x64
 
See the help file:
Help -> Help topics -> Advanced use -> command line parameters -> /mail
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
 
Thanks Roelof,

Quote
Roelof Otten wrote:
See the help file:

Help -> Help topics -> Advanced use -> command line parameters -> /mail

I'm using Access2007's VBA with a string like:

C:\Program Files\The Bat!\thebat.exe /MAILU='Andrew M. Bott';SUBJECT='PO 104001-4900034574-LCPI-2';ATTACH='D:\My Documents\Rubber\Suppliers\LCPI\PO 104001-4900034574-LCPI-2.pdf'

Nothing happens: no errors, nothing.

I've even tried: C:\Program Files\The Bat!\thebat.exe /MAIL

But, nothing happens here either.


Any ideas?

Thanks,
Andy
Thank you,
Andy

Team work makes the dream work.

The BAT! 6.7.36 x64
 
PS I'm using the SHELL("") function and I've used this function with many other apps many times before.
Thank you,
Andy

Team work makes the dream work.

The BAT! 6.7.36 x64
 
Try "C:\Program Files\The Bat!\thebat.exe" /MAILU='Andrew M. Bott';SUBJECT='PO 104001-4900034574-LCPI-2';ATTACH='D:\My Documents\Rubber\Suppliers\LCPI\PO 104001-4900034574-LCPI-2.pdf'
Presuming that you're running a 32 bits version of Windows...
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
 
Thanks Roelof,

I've just found 15 messages in my outbox! So, my code was working, the new messages were created there.

How can I open a new message window.


Help shows /MAILTO but, this just creates a new message in my outbox, too.

BTW: mailto links in webpages open new message windows well.


How can I open a new message window?


Thanks,
Andy

PS BatPro, 4.0.38;  W7 32 bit
Thank you,
Andy

Team work makes the dream work.

The BAT! 6.7.36 x64
 
The final option for the /mail parameter is EDIT, the help file claims that that will open an editor window.
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
 
Thanks Roelof,

I can't believe I missed that!


Thank you again.
Thank you,
Andy

Team work makes the dream work.

The BAT! 6.7.36 x64
Pages: 1