If in an email you see f�r instead of für, chances are that your weblogic/JavaMail is not using the right encoding (presumably UTF-8)
You can try several options:
-Dfile.encoding=UTF-8
change the template to use escaped (HTML) charachers
see https://issues.apache.org/jira/browse/GERONIMO-5022 :
message.setSubject(subject,"UTF-8");
message.setText(text, "UTF-8");
properties.setProperty("mail.mime.charset","UTF8");
Showing posts with label javamail. Show all posts
Showing posts with label javamail. Show all posts
Friday, December 18, 2015
Saturday, April 28, 2012
Sending and receiving emails in WLST / Python
http://docs.python.org/library/smtplib.html
import smtplib
s = smtplib.SMTP('smtp.acme.com')
#SMTP.sendmail(from_addr, to_addrs, msg[, mail_options, rcpt_options])
s.sendmail('pippo@gmail.com', 'pluto@gmail.com', 'ciao come stai?')
s.quit()
s.login('pierluigi.vernetto@acme.com', 'mypw')
Traceback (innermost last):
File "", line 1, in ?
File "/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/wlst/modules/jython-modules.jar/Lib/smtplib.py", line 540, in login
SMTPException: SMTP AUTH extension not supported by server.
s.connect()
see
http://www.oracle.com/technetwork/java/javamail/index.html
import smtplib
s = smtplib.SMTP('smtp.acme.com')
#SMTP.sendmail(from_addr, to_addrs, msg[, mail_options, rcpt_options])
s.sendmail('pippo@gmail.com', 'pluto@gmail.com', 'ciao come stai?')
s.quit()
s.login('pierluigi.vernetto@acme.com', 'mypw')
Traceback (innermost last):
File "
File "/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/wlst/modules/jython-modules.jar/Lib/smtplib.py", line 540, in login
SMTPException: SMTP AUTH extension not supported by server.
s.connect()
see
http://www.oracle.com/technetwork/java/javamail/index.html
Subscribe to:
Posts (Atom)