|
-
Oct 28th, 2005, 06:32 AM
#1
Thread Starter
Hyperactive Member
Help To Send Data In Outlook Express
dear friends
i am creating a project in which i want what ever i am write in textbox it should reach to the outlook express in the subject box but i do not know how to do it.
plz!!! help me in this . its urgent
thanks in advance
shivpreet2k1
Last edited by Wokawidget; Oct 28th, 2005 at 09:16 AM.
-
Oct 28th, 2005, 08:31 AM
#2
Re: Help To Send Data In Outlook Express
Outlook Express doesn't have com interface and therefore its objects cannot be accessed directly.
Use MAPI (VB has mapi controls) which is what OE is based on.
-
Oct 28th, 2005, 08:42 AM
#3
Re: Help To Send Data In Outlook Express
If its just prepopulating text into the subject, sender, or body then its easy touse the ShellExecute API but you will only Create the email and display it, not actually send it.
VB Code:
Option Explicit
Private 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
Private Const SW_SHOWNORMAL As Long = 1
Private Sub Command1_Click()
ShellExecute Me.hWnd, "Open", "mailto: [email protected]?subject=" & txtSubject.Text & "&body=my message;", vbNullString, "C:\", SW_SHOWNORMAL
End Sub
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 28th, 2005, 11:12 PM
#4
Thread Starter
Hyperactive Member
Re: Help To Send Data In Outlook Express
Hi Rob
Thanks for your invaluable help. Can I provide attachment in the sam manner
Thanks in advance
shivpreet2k1
-
Oct 29th, 2005, 10:07 AM
#5
Re: Help To Send Data In Outlook Express
I believe there is but its troublesome as you need to strip out certain characters and stuff. Try a search on the forums for "mailto:"+"&attach".
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|