I am using NT and connect to a LAN. I want to send myself an email when the scipt is done. I tried the 'mapi' command and it keeps give me an error "LOgin failed"
I'd put in my account name and get Login Failed whether or not I used my password.
Using Outlook and set to MS Exchange Server.
What I found was that the string sMailLogon = "" ;Mail logon/profile name
needed to be set to something entirely different than I would have figured. It had to be set to the value which can be found by going to Outlook's Tools/Options Mail Services tab: If using MS Exchange Server at the top you'll probably have a check mark by 'Always use this Profile. The profile name in the field to the right of this is what I had to put in my 'sMailLogon' variable.
In my case it is set to: "CompanyName Mail"
In th drop down I noticed the default: "MS Exchange Settings".
The value can also be found by going into the control panel and opening the mail settings and then the 'Delivery' tab.
I believe the value needed should be in the 'Deliver new mail to the following location:" field.
I am using NT4.0 and MS Outlook 2000. The method of getting to these settings should be similar in other versions of Windows and Outlook though.
Finally, the variable 'sMailLogon' should probably be named 'sMailProfile'.
There is one good thing to note about this:
since the profile name will likely be the same for all users in networks with mail configured as it is in my network there is no need to prompt for username or keep any of that info...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.