2
When sending email via php (phpmailer), I can configure all the parameters of the email, however I see that I can do something like this:
<?php
// Excerto do código
$mail = new PHPMailer;
$mail->IsMail();
$mail->IsHTML(true);
$mail->isSMTP();
$mail->SMTPAuth = true;
$mail->Host = 'mail.meudominio.pt';
$mail->Username = '[email protected]';
$mail->Password = 'abc123';
$mail->setFrom('[email protected]', 'pomba gira');
$mail->addReplyTo('[email protected]', 'yahoo guy');
?>
With this, I can send an authenticated email to anyone, posing as a third person.
Question: - There’s a chance my server will force FROM to match the email that authenticates?
Return-path of the received email has the real sender
– Miguel
Is the real email or can be manipulated, too?
– Rui Costa
Nop, this is the real one and I don’t think I can change it (I’m not sure)
– Miguel