|
-
Jan 5th, 2008, 01:34 PM
#1
Thread Starter
Junior Member
Outlook Express 6 and VB6
I am using Outlook Express 6.0 and I use the Mapi Controls in VB6 to send email via OE6 like this:
Code:
mapMess.RecipDisplayName = Text3.Text
mapMess.RecipAddress = Text5.Text
mapMess.MsgSubject = "Customer Newsletter"
The problem is this always uses my OE6 default email address however I want to use my "Email-to-SMS" service for which I need to specify my other email address (not the default) as the "From" email address.
How do I specify a different "From" address so that it does not use my default OE6 email address but my other email address instead?
-
Jan 5th, 2008, 01:35 PM
#2
Re: Outlook Express 6 and VB6
You cant specify a different From address unless its an actual valid account. This prevents email fraud and spammers.
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 
-
Jan 5th, 2008, 01:53 PM
#3
Thread Starter
Junior Member
Re: Outlook Express 6 and VB6
You cant specify a different From address unless its an actual valid account. This prevents email fraud and spammers.
Thanks for the reply.
Yes, I wish to specify a valid email account not a phony account.
Please advise should anyone know how to specify my other valid email account (not my default email account).
-
Jan 5th, 2008, 01:55 PM
#4
Re: Outlook Express 6 and VB6
You have to go into Outlook Express and specxify which will be your default address. Then when you send with MAPI it will pickup the default.
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 
-
Jan 5th, 2008, 01:59 PM
#5
Thread Starter
Junior Member
Re: Outlook Express 6 and VB6
Oh I see.
So there is not way to select the account from which to send the mail directly from VB6?
-
Jan 5th, 2008, 02:01 PM
#6
Re: Outlook Express 6 and VB6
You could monitor the registry and see how OE specifies the default account in the registry. Then change account defaults via code.
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 
-
Jan 5th, 2008, 02:04 PM
#7
Thread Starter
Junior Member
Re: Outlook Express 6 and VB6
Thanks RobDog888, sounds like that may be for more advanced users I will make an effort to learn about it though.
Appreciate the help
-
Jan 5th, 2008, 02:08 PM
#8
Re: Outlook Express 6 and VB6
The registry isnt too hard but the user will need permissions to read /write to the key. Search the forums for RegOpenKey or RegQueryInfoKey and you will find some example code.
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 
-
Jan 5th, 2008, 02:13 PM
#9
Thread Starter
Junior Member
Re: Outlook Express 6 and VB6
I get shivers working with the registry in real time 
But thanks for the info. Will make sure I know what I am doing before I dig too deep in the registry.
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
|