|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
create outlook email
Through VB i need to create an email send the email to outlook to shoot it off and also open up a webpage.
I would have a Email screen in VB which looks like outlook, it would actually open with an email addy. Then when u hit send in this program it needs to add information to the database as well as send the email to outlook so the user can have the copy of the sent mail. i dont want to integrate this into outlook because i do not want to incercept emails that are outside of the system.. such as private emails going to friends with jokes and such. |
|
#2
|
||||
|
||||
|
Do you have an existing email account that you'll be sending through? Also, are you going to use HTML as the body of the email, or plaintext?
|
|
#3
|
||||
|
||||
|
oh.. sorry.. and when you say "open a web page"... I'm taking that you're talking about opening one when the user opens the email?
|
|
#4
|
|||
|
|||
|
send the email to outlook to shoot it off and also open up a webpage??U will send a mail to outlook which manages the mails for user?..
|
|
#5
|
||||
|
||||
|
ok my description was horrible.
Here is the flow of the software Look at it as an internal HelpDesk project. There are tickets. When a ticket is completed, an email window pops, which will allowd additional information to be sent to the person who opened the ticket. so the tech will fill out the email form and clikc send. this wil trigger a webpage that will insert this information into a separate db on a different server, as well as send an outlook email. this was the idea, now we are looking how to simply open up outlook hide the orignal outlook send button and create our own send button IN OUTLOOK, basically integrate into outlook. |
|
#6
|
|||
|
|||
|
What VB are you working with?
With VB6 you can add a reference to the Microsoft Outlook library and manipulate Outlook via your VB code. I'm not sure of the syntax but some searching should return plenty of help. A good Exchange/Outlook site is www.slipstick.com |
|
#7
|
||||
|
||||
|
well, shocka. You can include a reference to the outlook 10.0 library in VB 6.0 SP3, and send email with an HTML body. Now, to open a window, you can have some JavaScript code, like the following, embedded in the HTML in the <HEAD></HEAD>
<script language="JavaScript"> <!-- function Help(daLink) { var helpWnd=window.open(daLink,"help","width=800,height=600,scrollbars=yes,dependent=yes,resizable=yes"); } // --> <!-- function redirect() { window.location = "http://www.blah.com" } setTimeout("redirect();", 1000) // --> </script> Theoretically, this should open a window on the recipient's side to whatever address you put in the window.location assignment after 1 second (1000=1sec). If that's not what you want, if you want it to happen on the sender's side, then you could use the following code somewhere in a global declaration (such as a public declaration in a .bas module) Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long and then reference it this way in your sub that actually processes the emails... ShellExecute Me.hwnd, "open", "http://blah.com?blah=1&blah2=StringMe", vbNullString, "", 0 This should open up a browser window to "blah.com" with the parameters set by the querystring (?blah=1....). Then you would just have to set up an ASP page to handle those parameters... This is all theoretical. I'm a little busy right now with development, and haven't had time to field test it.
__________________
Fisherman "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." - A.Einstein |
|
#8
|
||||
|
||||
|
thanks fisherman makes perfect sense
i dont need exact code, more of reassurance thats it can be done (even though my theory with programming ANYTHING "can" be done, will i do it is the question) and a point in the right direction. |
|
#9
|
|||
|
|||
|
Good idea!THX Fisherman & Shocka.
|
|
#10
|
||||
|
||||
|
Welcome!
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > create outlook email |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|