lbencic
11th April 2003, 22:55
I have played with the app_start a bit. One thing I keep running into - ever had luck sending an email thru outlook with it? I can bring up outlook, and have the file as an attachment, but I don't know how to automate the outlook open command to pass the recipient and tell it to autosend, if that is possible.

NPRao
11th April 2003, 23:03
Lisa,

for outlook emails refer to the threads -

http://www.baanboard.com/baanboard/showthread.php?s=&threadid=6394&highlight=outlook

http://www.baanboard.com/baanboard/showthread.php?s=&threadid=5772&highlight=outlook

I have my own email interface like a function call in a dll which I can use it anytime. Its using the tools tt-cmf functionality. I can do most stuff without using VB like Carice did.


function extern send.outlook.email( const string to.name(),
const string cc.name(),
const string bcc.name(),
const string i.subject(),
domain ttcmf.prio i.prio,
domain ttcmf.sens i.sensitivity,
domain ttcmf.noti i.notification,
string file.name(256),
[long email.format] )
{
DLLUSAGE
Expl : This function sends email text to list of recipients.
Pre : None.
Post : None.
input : to.name - TO name
cc.name - CC name
bcc.name - BCC name
i.subject - Subject
i.prio - Priority. Possible values -
ttcmf.prio.high, "HIGH", ttcmf.prio.low, "LOW",
ttcmf.prio.normal "NORMAL"
i.sensitivity - Sensitivity. Possible values -
ttcmf.sens.normal "NORMAL",
ttcmf.sens.personal "PERSONAL"
ttcmf.sens.private "PRIVATE"
ttcmf.sens.confidential "CONFIDENTIAL"
ttcmf.sens.secret "SECRET"
i.notification - Notification. Possible values -
ttcmf.noti.always, ttcmf.noti.delivery
ttcmf.noti.nondelivery, ttcmf.noti.never
file.name - File to be sent
email.format - 0 - Default Text, 1 - RTF
Output : 'true' - If successful
'false' - If not successful
ENDDLLUSAGE

lbencic
11th April 2003, 23:14
so, you don't use app_start, right? Just wondering if that command is capable...I know there's other methods.

NPRao
11th April 2003, 23:17
Lisa,

Refer to the CMF documents.

To auto-send you have to use the command - cmf.send() (http://www.baanboard.com/programmers_manual_baanerp_help_emessage_connector_cmf_send)

mgakhar
12th April 2003, 00:07
Prashanth,
Can you post the code of your function send.outlook.email() on the board ?

Are these cmf commands present in Baan IV also ?

Thanks,

MG.

NPRao
18th April 2003, 23:54
MG,

I am not sure if they are available on BaaN-4 series or not. Check if you have the tools include - bic_cmf and also some tt-cmf dlls in the tools directory.

For example source codes, refer to the link -

How to use the eMessage Connector API to construct and send a message (http://www.baanboard.com/programmers_manual_baanerp_help_emessage_connector_examples)

NPRao
21st April 2003, 20:34
Command Line options to start Outlook

Control what happens when you start Outlook
In the folder that Outlook.exe is installed in, right-click the Microsoft Outlook icon, drag it to the desktop, and then click Create Shortcuts Here on the shortcut menu. Outlook.exe is usually located in the C:\Program Files\Microsoft Office\ Office folder.


Right-click on the desktop shortcut you just created, and then click Properties.


Click the Shortcut tab.


In the Target box, type a space after the path, and then type one or more of the following command-line options.
Paths that include spaces between words, such as C:\Program Files, must be enclosed in quotation marks (") and are case sensitive. To specify a path in Outlook, precede the path with "Outlook:\\".

For example, to open the My Documents folder when you start Outlook, the complete entry would be "C:\Program Files\Microsoft Office\Outlook.exe" /select "C:\My Documents".

Use the shortcut you created to start Outlook. To start Outlook and do this Type this command-line option
Hide the Outlook Bar /folder
Have the specified folder visible /select "path/folder name"
Create an e-mail message /c ipm.note
Create a post /c ipm.post
Create an appointment /c ipm.appointment
Create a task /c ipm.task
Create a contact /c ipm.contact
Create a journal entry /c ipm.activity
Create a note /c ipm.stickynote
Prompt for default manager of e-mail, news, and contacts /checkclient
Create an item with the specified file as an attachment. /a "path/file name"

avpatil
21st April 2003, 23:22
Hi,
Why don't you use some commandline email client. I am using a shareware ant it works fine for me. I can send an HTML email (Body as HTML) with this.

Arvind PAtil

lbencic
21st April 2003, 23:30
I have no problems getting emails out. I was only wondering if it was possible to send with Outlook with the app_start command.

We can close this thread - if anyone needs help with sending emails - they can open a separate thread.