Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > VBA / Office Integration > Word, PowerPoint, Outlook, and Other Office Products > Emailing w/ VB


Reply
 
Thread Tools Display Modes
  #1  
Old 07-19-2001, 10:30 AM
Boomers
Guest
 
Posts: n/a
Default Emailing w/ VB


I need to be able to open the defalut email client off of any computer. Then I need it to insert the email addresss in the TO: prompt and either make an attachment or paste info from excel into the body of the email.
Thanks

Know someone that owns a child care business. Go to www.kidkeeper.net. It will help them greatly
Reply With Quote
  #2  
Old 07-19-2001, 10:32 AM
Thinker Thinker is offline
Iron-Fisted Programmer

Retired Moderator
* Guru *
 
Join Date: Jul 2001
Location: Fayetteville Arkansas USA
Posts: 18,127
Default Re: Emailing w/ VB

Look back at your original post in vb help for my last answer.

__________________
Posting Guidelines
Reply With Quote
  #3  
Old 07-19-2001, 11:21 AM
Boomers
Guest
 
Posts: n/a
Default Re: Emailing w/ VB

I did but it didn't work either. I came up with the same error and highlights .hwndx

Know someone that owns a child care business. Go to www.kidkeeper.net. It will help them greatly
Reply With Quote
  #4  
Old 07-19-2001, 11:30 AM
KesleyK's Avatar
KesleyK KesleyK is offline
Senior Contributor

Retired Moderator
* Expert *
 
Join Date: Jun 2001
Location: Idaho, missing Dallas
Posts: 965
Default Re: Emailing w/ VB

I don't know what all you've tried, and this may not work with anything but Outlook, but let me know what you get with this:

Call Shell("Start.exe mailto:testl@test.com?Subject=TestSubject&Body=TestBody", vbHide)

______
Cheers!
__________________
We shall persevere.
Reply With Quote
  #5  
Old 07-19-2001, 11:34 AM
Boomers
Guest
 
Posts: n/a
Default Re: Emailing w/ VB

Where do I put it? In a seperate function or in the one I already have?

Know someone that owns a child care business. Go to www.kidkeeper.net. It will help them greatly
Reply With Quote
  #6  
Old 07-19-2001, 11:38 AM
Boomers
Guest
 
Posts: n/a
Default Re: Emailing w/ VB

I put it in a seperate module by its self and it came up with the default email client but didn't put in the subject or body

Know someone that owns a child care business. Go to www.kidkeeper.net. It will help them greatly
Reply With Quote
  #7  
Old 07-19-2001, 11:38 AM
KesleyK's Avatar
KesleyK KesleyK is offline
Senior Contributor

Retired Moderator
* Expert *
 
Join Date: Jun 2001
Location: Idaho, missing Dallas
Posts: 965
Default Re: Emailing w/ VB

Just cut and paste into the Immediate Pane and hit enter, let me know what happens.

______
Cheers!
__________________
We shall persevere.
Reply With Quote
  #8  
Old 07-19-2001, 11:40 AM
KesleyK's Avatar
KesleyK KesleyK is offline
Senior Contributor

Retired Moderator
* Expert *
 
Join Date: Jun 2001
Location: Idaho, missing Dallas
Posts: 965
Default Re: Emailing w/ VB

What is your default e-mail client? It may turn out this requires actual VB with an MAPI control since it sounds like everything everyone has tried doesn't want to work for you.

______
Cheers!
__________________
We shall persevere.
Reply With Quote
  #9  
Old 07-19-2001, 11:42 AM
Boomers
Guest
 
Posts: n/a
Default Re: Emailing w/ VB

My default email browser is AOL

Know someone that owns a child care business. Go to www.kidkeeper.net. It will help them greatly
Reply With Quote
  #10  
Old 07-19-2001, 11:43 AM
KesleyK's Avatar
KesleyK KesleyK is offline
Senior Contributor

Retired Moderator
* Expert *
 
Join Date: Jun 2001
Location: Idaho, missing Dallas
Posts: 965
Default Re: Emailing w/ VB

I don't think you'll be able to do this any other way than with a VB app then.

______
Cheers!
__________________
We shall persevere.
Reply With Quote
  #11  
Old 07-19-2001, 11:47 AM
Boomers
Guest
 
Posts: n/a
Default Re: Emailing w/ VB

Ok Thanks. If I get the VB App. and get this to work. Does everyone that has my software and wants to use this feature going to have to have the VB App.

Know someone that owns a child care business. Go to www.kidkeeper.net. It will help them greatly
Reply With Quote
  #12  
Old 07-19-2001, 02:21 PM
KesleyK's Avatar
KesleyK KesleyK is offline
Senior Contributor

Retired Moderator
* Expert *
 
Join Date: Jun 2001
Location: Idaho, missing Dallas
Posts: 965
Default Re: Emailing w/ VB

No, but they will need to install your app (.exe) on their machine. If you don't use anything but basic functions, the app should work on most machines without installation, but since you're going to be using MAPI it would probably need to be installed after being packaged with an install-maker.

______
Cheers!
__________________
We shall persevere.
Reply With Quote
  #13  
Old 07-25-2001, 03:00 PM
snownieve
Guest
 
Posts: n/a
Question Re: Emailing w/ VB

what program are you referring to? Where can I buy it from??

I'm required to sent emails alerts/notifications using outlook....

Reply With Quote
  #14  
Old 07-25-2001, 03:40 PM
KesleyK's Avatar
KesleyK KesleyK is offline
Senior Contributor

Retired Moderator
* Expert *
 
Join Date: Jun 2001
Location: Idaho, missing Dallas
Posts: 965
Default Re: Emailing w/ VB

The default install maker that comes with VB is Package and Development Wizard. There have been quite a few discussions about other install maker programs on the VB Help forum that you should be able to find through the search utility if you need more information about them.

______
Cheers!

"Where there's a will, I want to be in it!" -- unknown
__________________
We shall persevere.
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
 
 
-->