What is the difference between ports 465 and 587?

SMTP protocol: smtps (port 465) v. msa (port 587) Ports 465 and 587 are intended for email client to email server communication – sending out email using SMTP protocol. Port 465 is for smtpsSSL encryption is started automatically before any SMTP level communication. Port 587 is for msaIt is almost like standard SMTP port. MSA should accept email after authentication (e.g. after SMTP … Read more

How to validate an email address in JavaScript

Using regular expressions is probably the best way. You can see a bunch of tests here (taken from chromium) Here’s the example of regular expresion that accepts unicode: But keep in mind that one should not rely only upon JavaScript validation. JavaScript can easily be disabled. This should be validated on the server side as well. Here’s an example of … Read more

How to send an email with Python?

I recommend that you use the standard packages email and smtplib together to send email. Please look at the following example (reproduced from the Python documentation). Notice that if you follow this approach, the “simple” task is indeed simple, and the more complex tasks (like attaching binary objects or sending plain/HTML multipart messages) are accomplished very rapidly. For sending email … Read more

Are email addresses case sensitive?

From RFC 5321, section 2.3.11: The standard mailbox naming convention is defined to be “local-part@domain”; contemporary usage permits a much broader set of applications than simple “user names”. Consequently, and due to a long history of problems when intermediate hosts have attempted to optimize transport by modifying them, the local-part MUST be interpreted and assigned … Read more

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