Hello, I have a problem when I use SMTP with Swift_Message.
I put the information right and the email arrives. The problem is that an email arrives for both "From" and "To". Is this normal or do I have to set something up so it does not?
I'm going to put the code made with Symfony2 that, despite being a framework, you can understand what is being done.
$transport = \Swift_SmtpTransport::newInstance($host, $port, $security)
->setUsername($login)
->setPassword($senha)
->setAuthMode('login');
$mailer = \Swift_Mailer::newInstance($transport);
$message = \Swift_Message::newInstance()
->setSubject($titulo)
->setFrom($from)
->setTo($para)
->setBody(
$conteudo,
'text/html'
);
$mailer->send($message);