[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]
Check out Janggi (Korean Chess), our featured variant for December, 2024.
Check out Janggi (Korean Chess), our featured variant for December, 2024.
The safe_email() function normally checks whether a To address is listed in the database, and I initially just wrote in an exception for changing an email address. But since Game Courier invitations may also be sent to an address that is not in the database, I replaced this specific exception with a flag that allows an exception for a particular use. I added an optional sixth argument called $onlytomember, and it defaults to true if you don't include it. When the function should be allowed to send email to someone who is not a member, the sixth argument should be set to false. When you need to set the sixth argument, but you don't need to set the fifth argument, set the fifth argument to "", which is the same as its default value.