Sending mail from the forum, question to @Milo (General)

by Auge ⌂ @, Thursday, June 01, 2017, 08:14 (753 days ago) @ danielb987
edited by Auge, Saturday, September 16, 2017, 21:14


Testing for recipient-is-valid includes the check for a valid address or a valid user-ID ...

It should do both. First check for a valid user id. Then check that that user has a valid email address.

That's correct for registered recipients, but I intended another goal. The scripts allow to send emails also to unregistered users, who gave their o.k. to be contacted via e-mail when posting. In this case no user-ID exists. There's only an e-mail-address and the database field mlf2_entries.email_notification. Thatswhy the "or" instead an "and".

Tschö, Auge

Trenne niemals Müll, denn er hat nur eine Silbe!

Complete thread:

 RSS Feed of thread

powered by my little forum