Is it possible to use HTML, Java script coding in emails?
Eg: If i type <body bgcolor="pink"> in the body of email will the color of email change?

Recommended Answers

All 4 Replies

The content-type of the Emeow must be html.
You can specify the content-type in the header of the Emeow ~

The default is text/plain ~

I dont understand. How do i specify the content type?

that all depends on the environment you're working in...

In javamail you could do something like message.setContent(content, "text/html");

Hello,

The output of the mail will also depend on what client is being used to read the email. Your code is going to disguise the real email message inside of my text-only email program (PINE).

Christian

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.