Send email via PHPMailer to single email address on MySQL
问题 The "search result" brings up a table, and at the end of each row there is an "email-button". Visitor clicks one "email-button" and the system sends an email to that registered "user". The PHPMailer and the mailing system is working fine, but ONLY with static email! QUESTION: what do I need to change on the code to send email to the single email what the visitor chooses. I have added a "WHERE" condition to the $query but it seems to have no impact. MAILING FUNCTION WITH THE FOLLOWING TWO