|
-
Nov 21st, 2005, 06:49 AM
#1
Thread Starter
Frenzied Member
HTML Email
Hi,
When I receive certain emails they appear as a webpage i.e HTML formatted text and graphics images etc. How do I send emails the same?
-
Nov 22nd, 2005, 12:38 PM
#2
Re: HTML Email
I am awake now. 
If you mean manually then if your using Outlook you can change your settings in the Options > Mail Format > Message Format > "Compose in this message format:" > and choose HTML.
If you mean programmatically I can post the code too but I think you may mean manually.
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 
-
Nov 22nd, 2005, 03:19 PM
#3
Thread Starter
Frenzied Member
Re: HTML Email
I have changed the settings to be html but where do I place the html code?
If I type it directly into the message body it doesnt display as rendered html when received by a recipient its still just code!
What I am trying to do is send emails that appear as webpages.
-
Nov 22nd, 2005, 03:28 PM
#4
Re: HTML Email
For that ot happen the receipient must be able to view their emails as HTML too. When you type into the body it will be like using FrontPage or any WYSIWYG editor.
I have some code on the forums for this let me search for it.
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 
-
Nov 22nd, 2005, 03:39 PM
#5
Re: HTML Email
Couldnt find it. What version of Outlook are you using? I will write up something quickly.
Meanwhile this is a link for Outlook 2000 and before.
http://msdn.microsoft.com/library/de...roHTMLBody.asp
Last edited by RobDog888; Nov 22nd, 2005 at 03:42 PM.
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 
-
Nov 22nd, 2005, 04:05 PM
#6
Thread Starter
Frenzied Member
Re: HTML Email
Hi Rob,
I think its just me being stupid but if I set the message to be of type HTML
and in the message paste
<HTML>
<BODY BGCOLOR="RED">
<B>HTML EMAIL</B>
</BODY>
</HTML>
should it not display as a html page, (I guess not because I tried it) but thats what Im wanting to do, design an email that displays like a wepage in outlook through code.
PS Im using Outlook express which I got free with XP, but I know its capable of displaying these emails because thats how most spam I receive is displayed.
-
Nov 22nd, 2005, 04:05 PM
#7
Re: HTML Email
Here is a quick and dirty demo.
VB Code:
Option Explicit
'Add a reference to MS Outlook xx.0 Object Library
Private moApp As Outlook.Application
Private Sub Command1_Click()
Dim oEmail As Outlook.MailItem
Dim strBody As String
Set oEmail = moApp.CreateItem(olMailItem)
strBody = "<HTML><HEADER><TITLE>RobDog888 HTML Email DEMO</TITLE></HEAD>"
strBody = strBody & "<BODY bgcolor='green'>Testing</BODY></HTML>"
With oEmail
.BodyFormat = olFormatHTML
.HTMLBody = strBody
.Subject = "RobDog888 HTML DEMO"
.Save 'Saves it to the Drafts folder
.Display
End With
End Sub
Private Sub Form_Load()
Set moApp = New Outlook.Application
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
moApp.Quit
Set moApp = Nothing
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 
-
Nov 23rd, 2005, 04:20 AM
#8
Thread Starter
Frenzied Member
Re: HTML Email
Thanks I see what is happening there in vb code, but is there no way to just type HTML direct into an email through Outloook?
-
Nov 23rd, 2005, 04:31 AM
#9
Re: HTML Email
I suppose you could change your options. Option > Mail Format > Use Word to edit emails, but thats still a WYSIWYG editor.
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
|