简体   繁体   中英

What is the most efficient way to store emails in mysql

I need to store emails in database to use in a php application. The rest of the application is stored in mysql. Is mysql the best way and in what format to store. Or is there another way that would be better?

This was amended from 320 to 256 chars. See below:

There is a length limit on email addresses. That limit is a maximum of 64 characters (octets) in the "local part" (before the "@") and a maximum of 255 characters (octets) in the domain part (after the "@") for a total length of 320 characters. However, there is a restriction in RFC 2821 on the length of an address in MAIL and RCPT commands of 256 characters. Since addresses that do not fit in those fields are not normally useful, the upper limit on address lengths should normally be considered to be 256.

Source: http://www.rfc-editor.org/errata_search.php?rfc=3696

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM