Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to send an email with ASPECT scipt???

Status
Not open for further replies.

tpq

Programmer
Apr 2, 2003
12
US
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"

Thanks for your help
 
I was having the same problem:

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...

Hope this helps. DT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top