title: Yii2 Send email by any username and password
body: <p>How can I <strong><em>send an email by any email account and password</em></strong>, like below or by any another way:</p>
  
  <pre><code>$mail-&gt;setFrom('from@gmail.com');
  $mail-&gt;setPassword('abcxyz');
  $mail-&gt;setHeader('This is a header');
  $mail-&gt;setBCC('bcc@gmail.com');
  $mail-&gt;setCC('cc@gmail.com');
  $mail-&gt;setContent('contents absjadha ');
  $mail-&gt;send();
  </code></pre>
  
  <p>I have over <em>100 emails</em>, and I want to <strong><em>use it to send emails to my users</em></strong> or <strong><em>let them send emails to the others by my tool</em></strong>. Is there any <strong>Yii2</strong> plugin or extension that can help me to solve this problem? Providing that all their <strong><em>email and password stored in my database</em></strong>. Thank you in advance!</p>