David
EmailStartOutlookSession works fine for me, with or without the profile name entered.
If I do not enter a profile name it displays a list of avaialble profiles for selection.
I do not use the EmailStartSMTPSession function, indeed I cannot find in the Help were it says that both are required.
From Help..........
If this parameter is an empty string (""):
if several profiles are defined on the current computer, EmailStartOutlookSession displays a window containing all the profiles among which the user can choose his own profile.
if a single profile is defined on the current computer, EmailStartOutlookSession automatically selects this profile.
OK, just tried a quick cut&paste from the help...
SessionID = EmailStartOutlookSession("")
// Read the first contact
ContactFirst(SessionID)
// Add the contacts to a list
WHILE mContact.Out = False
Trace(mContact.Name + TAB + mContact.FirstName)
//ListAdd(ContactList, mContact.Name + TAB + mContact.FirstName)
ContactNext(SessionID)
END
IF SessionID <> 0 THEN
CloseSession(SessionID)
END
Worked OK!!!!!
I am using this on my pc and not on a dedicated mail server so maybe your mileage will vary.
HTH
DerekT