MAPI Error on Vista
MAPI Error on Vista
MAPI Error on Vista
MAPI Error on Vista
MAPI Error on Vista
MAPI Error on Vista MAPI Error on Vista MAPI Error on Vista MAPI Error on Vista MAPI Error on Vista MAPI Error on Vista MAPI Error on Vista MAPI Error on Vista
MAPI Error on Vista MAPI Error on Vista
MAPI Error on Vista
Go Back  Xtreme Visual Basic Talk > > > MAPI Error on Vista


Reply
 
Thread Tools Display Modes
  #1  
Old 03-20-2009, 03:38 PM
nylla nylla is offline
Newcomer
 
Join Date: Mar 2009
Posts: 3
Default Can we continue this thread


Edit by Moderator: re: MAPI Error on Vista



The above code "dabMail.bas", does work and I'm most grateful for the author's posting of it. However, it still doesn't fix Vista.

I rewrote my vb6 standard mapi app using dabMail. Tested it on XP with Outlook Express. Worked like a charm. I was thrilled.

I installed it on a Vista Home Basic system. Wouldn't work at all until I found a "fix" on the WinZip web site for their email feature. Believe it or not, you have to go into Internet Explorer options > security > set defaults and set Windows Mail as the "full" default email handler. So now my pgm works, but I'm no longer thrilled.

User Account Control is just too much trouble. This Vista PC, with in-house apps, goes on an auto parts counter. They have internet access, so I would like to use the UAC, but here's what happens.

If you're logged on as a user (not admin) and run my auto email pgm from the user session, the generated emails are posted to the administrator account in WinMail. Open WinMail from the user session and you see nothing in the outbox. Log onto the administrator session, open WinMail and there are my two generated emails in the outbox. I'm not going to force them to log on/off to send/receive email.

Then I decide I'll just change the properties of WinMail to always run as administrator. Nope. Vista does not allow you to change compatibility or security properties for "programs that are a part of this version of Windows."

It seems my only choice is to turn off UAC. Anyone have a better solution? Is there someway I can run WinMail as an administrator from a command line, ie, batch file?

Believe it or not, if you "explore all users", then right click WinMail, then click "run as administrator", you get the UAC msg "an unidentified pgm is trying to run ...". I could deal with that, but logging on/off is too much.

thanks -


Edit by Moderator: As per the Posting Guidelines please do not reply to threads which have been inactive for one month and please start your own threads to ask your own questions. Thank you.

Last edited by Colin Legg; 03-22-2009 at 06:54 AM.
Reply With Quote
  #2  
Old 03-21-2009, 10:36 AM
dilettante's Avatar
dilettanteMAPI Error on Vista dilettante is offline
Underclocked lifestyle

Forum Leader
* Guru *
 
Join Date: Feb 2005
Location: Michigan, USA
Posts: 4,529
Default

Shutting off UAC doesn't solve much unless you have all users log on with admin accounts. The whole point of UAC was to get you to stop doing this, and write software that doesn't need administrative rights at all.

Email in general is a particular trouble spot. Inbound email is a source of viruses and other nasties. Automated outbound email is a source of spam from zombied machines. In Vista extra effort has been taken to limit this.

Email accounts are more tightly bound to individual Windows user accounts. Windows Mail does not expose its accounts via CDO.

Windows 7 beta didn't ship with either Outlook Express or Windows Mail, and the released version probably won't include email clients either. There may be no MAPI support in Win7 at all unless you install a product like Outlook, and even there it may have become an optional feature as of Outlook 2007.


ISPs are also beginning to work to stop general SMTP use. Many block port 25 connections to anywhere but their own email servers.
Reply With Quote
  #3  
Old 03-25-2009, 12:04 PM
nylla nylla is offline
Newcomer
 
Join Date: Mar 2009
Posts: 3
Default

Thanks for the heads up about Win7. I've about decided the best solution in my situation is to change to ftp. Since your id said you're "curious" (I can't see it now), here is my situation.

One and only in house programmer for small auto parts chain. I have to write code that an auto parts counter man can use - not that easy a task. Every night for the past 10 years or so, each store's daily sales activity is tranmitted via email to our office. I automated this so that the counter men would not have to create mail and attach file.

I understand the problems with spam and email viruses which is why on the isp server I restrict who they can receive email from. I'm just trying to use the internet the way it was intended to be used. I can't help it if there are bad people out there that misuse it. Vista should give me the option of flagging an executable as safe. This is our first Vista machine. Thought it was time to try it out. I do not want to turn off UAC. I want all the protection I can get, but what's an overworked, ignorant programmer to do.

I am ignorant. I'm a 62 year old mainframer trying to keep 35 year old custom code running for as long as possible. The cost of upgrading to new software will put us out of business as this line of business is now flooded with large scale discount houses that have purchasing power we don't have.

[QUOTE=dilettante;1323947] The whole point of UAC was to get you to stop doing this, and write software that doesn't need administrative rights at all.

I can write software that doesn't need administrative rights? Software that acts like spam, ie, sends automated emails? Please tell me more.

I appreciate any and all suggestions. What about the future of FTP? That should still be viable in the future? I mean, not as closely monitored by the OS and ISPs.

thanks,
allyn
Reply With Quote
  #4  
Old 03-25-2009, 12:32 PM
dilettante's Avatar
dilettanteMAPI Error on Vista dilettante is offline
Underclocked lifestyle

Forum Leader
* Guru *
 
Join Date: Feb 2005
Location: Michigan, USA
Posts: 4,529
Default

The problem isn't your software, but all of the spammers out there who have ruined things for the rest of us.

Users don't need to be admins to send mail. What has changed is everyone is making it harder to automate email clients from a program, or even to send directly via SMTP. That is meant to curb what is seen as abuse and the rest of us get caught in the gears.

Even if you did the emailing from a server your program communicated with, lots of people are finding that their email gets trapped as spam at the receiving end. It is a very frustrating thing.


Did you find that disabling UAC works for you? If it does, maybe this is your answer for now.


FTP shouldn't be a problem in the short or long term. Another alternative might be using HTTP file transfers, but if FTP will work it might be less of a hassle than setting up a web server to accept file uploads securely.

Of course either of these can be more of a headache than email because you need to have the server available all of the time.

Some vendors are starting to provide basic hosted services now to assist custom applications. Amazon for example has one that lets you send and retrieve store and forward queued messages, uploaded and retrieved files, etc. These have ongoing costs associated of course, and they also are not as easy to use from a VB6 program, being web services oriented and using funky processes to secure the information.

http://aws.amazon.com/

This may be the future, or a passing fad.
Reply With Quote
  #5  
Old 03-25-2009, 06:23 PM
nylla nylla is offline
Newcomer
 
Join Date: Mar 2009
Posts: 3
Default

Thanks for your thoughts. The simplest ones do help, as in, the warehouse we order from just went to ftp instead of direct dial in to accept orders. I got them to agree to give us a folder and passwords and let us use their ftp server for our transfers. Would never have thought about the "server down" problem without your last reply. Now I have to consider whether or not to use a commercial server.

This is a mission critical app for us. Whatever got sold yesterday, gets ordered back today and delivered tonight so that we keep a current supply without having a huge investment in inventory.

I did not disable uac. I don't want to disable uac. That will only be done as a last resort.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
MAPI Error on Vista
MAPI Error on Vista
MAPI Error on Vista MAPI Error on Vista
MAPI Error on Vista
MAPI Error on Vista
MAPI Error on Vista MAPI Error on Vista MAPI Error on Vista MAPI Error on Vista MAPI Error on Vista MAPI Error on Vista MAPI Error on Vista
MAPI Error on Vista
MAPI Error on Vista
 
MAPI Error on Vista
MAPI Error on Vista
 
-->