I am unable to understand how to use email address of user at another place in same page of code
$message2 = Swift_Message::newInstance()
->setSubject($row3['subject'])
->setTo(array($user['email'] => $user['username']))
->setFrom(array($core->site_email => $core->site_name))
->setBody($newbody2, 'text/html');