Archive

Posts Tagged ‘HTML’

How to edit or view Outlook email HTML source

April 1st, 2012

You might not know but more often than not, the email you compose and send out is in HTML format.

However, the email client software rarely allow you to edit the HTML source directly.
One recent use-case I have:

I want to put a yahoo emoticon into a Gmail composed email, not by attaching the image file, but a direct HTML img tag which shows the online image.

Obviously Gmail does not support coding HTML email.
There are many ways to do this, you could also sign up for some bulk email services that you can edit the HTML template, but that’s another story for sending more than one email.

So one easy way is to use Microsoft Outlook, edit the source and forward it to Gmail.

One thing is missing in some older Outlook versions though.
You cannot edit HTML source in Outlook directly.

Found the solution here: Outlook 2007: Edit your Messages HTML Source

Steps
1) Create a VB module with the following code
Create a module from Tools menu > Macros > Visual Basic Editor

Sub EditHTML()
Dim mit As MailItem
Dim fname As String
Dim fcon As String
If Application.ActiveInspector.CurrentItem.Class <> olMail Then
MsgBox “The HTML Code cannot be edit for this item.” & vbCrLf & “Only Mail Items are supported.”, vbExclamation, “Edit HTML Error”
Exit Sub
End If
Set mit = Application.ActiveInspector.CurrentItem
fname = Environ$(“temp”) & “\temptxt.txt”
On Error Resume Next
Kill fname
Open fname For Binary As #1
Put #1, , mit.HTMLBody
Close #1
Shell “notepad.exe ” & fname, vbMaximizedFocus
MsgBox “Click OK when Done and the saved HTML will be inserted to your message”, vbOKOnly + vbInformation, “Edit HTML”
Open fname For Binary As #1
fcon = Space(LOF(1))
Get #1, , fcon
Close #1
mit.HTMLBody = fcon
End Sub

2) Add ‘Edit HTML’ function to New message menu
Open a new message,
Click The Ribbon Customization Button
Select the “More Commands” Menu
Instead of “Popular Commands” Select the “Macros”

Select the new macro created named “Project1.EditHTML”
Select the EditHTML Macro
Click The “Add” Button, Customize the new button

3) Do the HTML editing!

Notepad will pop with the HTML source of the message
Do your editing
Close when done or if no changes performed

Credits to Udi!

Cheatsheet, Good To Know, Internet , ,

iPhone App Development without Apple Mac OS

July 28th, 2009

I found out that you don’t need to have Apple Mac OS to develop iPhone Application.

Previously I found out that the limitation of iPhone SDK only works on Apple Mac OS X Leopard machines and it was a letdown or a big hurdle to try developing iPhone applications.

That was until a friend, Kai Shen gave me a link to MobiOne.

There’s no need for the iPhone SDK or a separate Palm Pre IDE or even to have a certain operating sytem to take advantage of smart devices.

MobiOne is a desktop software (currently available for Windows only), that has emulator for iPhone and the Palm Pre.

mobione1

Before you start to get all excited, it doesn’t really work like the iPhone SDK.

The emulator only acts like an emulator, or to be specific, a HTML browser for your ‘iPhone application’. 🙂

mobione2

mobione2a

mobione3

The Palm Pre version.

mobione3a
The Palm Pre version.

You can open a local HTML file or online site and access it like an application.

mobione4

mobione5

The software acts like a tool and has DOM Inspector, Profiler and also Debugger for your javascripts.

mobione5a

mobione5b

mobione5c

mobione5d

There is also a Geolocation feature where you can change your Latitude and Longitude to test your location-based app.

mobione6

It might not be a full iPhone SDK replacement, but I think it does get the job done if you’re planning to create applications in HTML.

It is useful for application developers such as the one who developed PJNation.com.

mobione_pjnation1

So if you’re thinking of developing iPhone apps the quick and dirty easy way, and don’t mind people checking out your source code, I’d say go HTML and javascript! 🙂

mobione_pjnation2

Thanks to Kai Shen for the tips!

Software, Technology , , , , , , , , , , ,