It's definitely my problem but I'm writing to see if anyone can help me.
in phpmaker I have a clicker that sends the email using phpmailer and it works great.
However, as the sending email I have to use a shared Office 365 mailbox which uses my company email (I am an administrator) and my password as login credentials.
Everything works fine and the loop sends the email from the mailbox email but saves the sending in my personal email.
I use office 365 with shared mailboxes.
the problem is that I find the mail invites in email@example.com with sent from firstname.lastname@example.org.
why is the mail not listed in the sent mail of email@example.com?
$mail = new \PHPMailer\PHPMailer\PHPMailer(); $mail->isSMTP(); $mail->Host = 'smtp.office365.com'; $mail->Port = 587; $mail->SMTPAuth = true; $mail->Username = 'firstname.lastname@example.org'; $mail->Password = 'mypassword'; $mail->SMTPSecure = 'TLS'; $mail->From ='email@example.com';