Java mail Help !

Thread Tools Search this Thread
Top Forums Web Development Java mail Help !
# 1  
Old 09-16-2011
Error Java mail Help !

I need to send a HTML mail. I used <meta> tag for giving info about the charset. That is UTF-8. My question in here is,

How to avoid special character's in Java mail. Even though I set with setContent method with UTF-8 format, I get the special character rarely. I get special character like ??? for apostrophe and sometimes � for the apostrophe. Pls help me out.
# 2  
Old 09-16-2011
It sound like you are viewing the UTF-8 in a not-UTF-8 tool. Maybe you would be happier using ASCII or ISO8859-1 ? UTF-8 supports UNICODE so there are many thousand of characters that are special to an ascii tool.
# 3  
Old 09-17-2011

ok. Will try that & see.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies

2. Shell Programming and Scripting

Use of java mail to send email from UNIX

Can someone help me to understand how to configure java mail on unix or what is syntex for that to put in script so email can be sent. earlier i was using 'send mail' to send email and not SMPT is stopped in unix machine and they asked us to use java mail. Before I was using this ... (0 Replies)
Discussion started by: mirwasim
0 Replies

3. Solaris

JAMES (Java Apache Mail Enterprise Server) - Installation/Configuration Problem

Good Afternoon Intelligent Administrators/Debuggers! I am installing JAMES on an internal server ( Specs of = SunOS v210b 5.10 Generic_120011-14 sun4u sparc SUNW,Sun-Fire-V210 After placing and "gunziping" the respective file, I am trying to run it by: ... (1 Reply)
Discussion started by: kazmiM
1 Replies

4. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

5. Programming

Not able to send a mail using JAVA code

Hi All, I am trying to send a mail from Solaris 5.9 using JAVA code.but when I am trying to do the same.then I am not able to read a line(data) from buffer..I am only able to connect to SMTP server but not able to get the data from buffer. when I am trying to read the line -- it is no able... (0 Replies)
Discussion started by: smartgupta
0 Replies

6. Solaris

how to forward mail in /var/mail/username to external mail

Dear All, Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do? thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies
Login or Register to Ask a Question