Just a curiosity really. I can't find a reason for it anywhere.
Why doesn't php mail() mailto allow you to use a semicolon to separate the email addresses?
Just a curiosity really. I can't find a reason for it anywhere.
Why doesn't php mail() mailto allow you to use a semicolon to separate the email addresses?
Jump to PostFrom the manual: "The formatting of this string must comply with RFC 2822."
Jump to PostYes. The RFC cited in PHP documentation explains that the semicolon is used to separate groups of mails, for example:
To: list-a: abc@localhost.tld, cba@localhost.tld;, list-b: admin@localhost.tld, info@localhost.tld;
I see.
So it's for compatibility?
Yes. The RFC cited in PHP documentation explains that the semicolon is used to separate groups of mails, for example:
To: list-a: abc@localhost.tld, cba@localhost.tld;, list-b: admin@localhost.tld, info@localhost.tld;
Maybe that's where I'd seen it used before. Cheers guys.
Some mail clients (Outlook) used to allow semi-colons, but only in the interface, when sending the application has to switch to commas.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.