There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Software Development
Tag Cloud
audio blue screen boot bsod computer cpu crash dell desktop driver drivers error excel external hard drive firefox freezes freezing hard drive hardware hijackthis internet internet explorer itunes laptop malware monitor motherboard mouse network networking outlook 2007 power printer problem ram router screen slow sound spyware trojan usb virus vista vista 32-bit windows windows xp windowsxp winxp wireless
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
How to Detect email service


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
draceplace's Avatar
Computer Specs
Senior Member with 867 posts.
 
Join Date: Jun 2001
Location: Conway, Arkansas
Experience: MCSE for what its worth!
06-Jul-2004, 01:35 PM #1
How to Detect email service
GOAL- User installation of app on various MS OS (NT and up hopefully) using WIN ZIP Self Extractor.
- I need user to email me info about their PC.
- I can determine this information with a dos command put it in a text file or into an outlook email.

The Problem-if they are using a web based email (instead of Outlook) my install (actually the mailto command) will start the Outlook 'configuration' since outlook is not configured. This isn't good users will be confused.

The Solution I want - to be able to detect if outlook/outlook express has been configured (for this user??).

If not configured present a .txt file with instructions to use their other email services. If configured fill out the email for them (I already know how to do this part).

Questions, Solutions, Ideas appreciated.
Regicide's Avatar
Senior Member with 304 posts.
 
Join Date: Aug 2003
Experience: Advanced
06-Jul-2004, 02:27 PM #2
I'm not sure how to detect if outlook is configured, but I do have a few other solutions. First, you could always make a website for your program. You would probably want free hosting and make sure that the server lets you use PHP, because you can make a simple email form and then mail it to you via the website. The second solution is a little harder. You could always make a mail program that comes with the program. Just have them enter their SMTP server and thenb you can send the email. Or rather than ask them for their SMTP server, get the address of a free SMTP server.
__________________
When you give everything and the feeling is gone
All the giving is fake, did you fake enough?
When you take everything and you stay too long
When there's nothing left, did you take enough?
coderitr's Avatar
Distinguished Member with 3,080 posts.
 
Join Date: Oct 2003
06-Jul-2004, 02:38 PM #3
See my post in this thread.
draceplace's Avatar
Computer Specs
Senior Member with 867 posts.
 
Join Date: Jun 2001
Location: Conway, Arkansas
Experience: MCSE for what its worth!
06-Jul-2004, 03:41 PM #4
Thanks both Regicide and coderitr! Both of you have given me some ideas to look into. If all else fails I am simply going to generate a txt file with instructions to copy, paste and mail it to me at xxx@yyy.com. I have some really weak users on this project and every step I could do for them would be one less future headache. I'm going to look into the web idea first.. I'm the registry info sounds like the most efficient but understanding if its the same for nt, 2k, me and xp will take some research....
coderitr's Avatar
Distinguished Member with 3,080 posts.
 
Join Date: Oct 2003
06-Jul-2004, 04:24 PM #5
Okay I guess I didn't fully understand your question (or didn't read it that well ) but from what I can see you don't have to care what mail client the user is using. Using VB's MAPI controls you can send an email using whatever mail client Windows has registered as the default. You can also use SMTP to generate the mail if it's just text. Attachments may be possible -- I haven't put that much research into it. Anyway, here's some code to get you started with the MAPI thing.

Code:
   MAPIsession1.SignOn

   If mapisession1.sessionID <> 0 Then
      With mapimessages1
         .sessionid = MapiSession1.sessionID
         .compose 
         .recipdisplayname "YOUR NAME"
         .recipaddress = "me@myipdomain.com"
         .msgsubject = "SUBJECT"
         .msgnotetext= "Message"
         .send False
       End With

       mapisession1.signoff
   End If
I cannot take credit for this code. I found it at http://www.pscode.com but I pasted it into a vb project of my own and when the .Send method is executed, my Lotus Notes (yuk) client loads (it would prompt for a password if it were not already running) and displays the "New Mail" screen already populated with the recipient, subject line and body text. When I left out the line where "RecipDisplayName" is specified, the new mail screen that I got did not have the recipient's address so it looks like I would still have had to provide that. I did not experiment with attaching a file. Good luck.
draceplace's Avatar
Computer Specs
Senior Member with 867 posts.
 
Join Date: Jun 2001
Location: Conway, Arkansas
Experience: MCSE for what its worth!
06-Jul-2004, 04:53 PM #6
I like this! But (always a catch) if they are not using a local mail client (ie yahoo, freemail or something, a small % of users are like this) will this fire off the 'configure' application like mailto did? Will it return and error I can capture??
coderitr's Avatar
Distinguished Member with 3,080 posts.
 
Join Date: Oct 2003
06-Jul-2004, 05:08 PM #7
Yes it will likely initiate a wizard maybe even Windows Internet Connection Wizard or OE's setup screen. I do not know of a way around that and I doubt that it would return an error if you cancelled out of it but try it and see. If you don't need to attach a file SMTP seems like the safest route. More at http://www.pscode.com on that too.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 10:41 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.