Error in JavaMail : PKIX path building failed unable to find valid certification path to requested target

Ok problem solved! The solution is this: First get the self-signed certificate from the mail server via openssl: echo | openssl s_client -connect yoursever:port 2>&1 | sed -ne ‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’ > yourcert.pem Then save the yourcert.pem file into this path /Library/Java/Home/lib/security (on macOSX) and put the cert file into the cacerts like this keytool … Read more

Getting mail attachment to python file object

I don’t really understand what you mean by “email multipart message object”. Do you mean an object belonging to the email.message.Message class? If that is what you mean, it’s straightforward. On a multipart message, the get_payload method returns a list of message parts (each of which is itself a Message object). You can iterate over … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)