Closed Martzy303 closed 2 years ago
Facing the same.
@Martzy303 Did you manage to solve it in any way?
This is because Laravel 9 has shifted from SwiftMailer to SymfonyMailer. @motze92 Any near-future plans of making it Laravel 9 compatible?
I am currently working on a Laravel 9 implementation. I will release it the next days.
https://github.com/motze92/office365-mail/releases/tag/3.0-beta Beta for Laravel 9 is now available. Large attachments are currently not working.
No, I could not wait, so I just used microsoft/microsoft-graph, I needed just to send some simple emails, at least now I know how it works.
I moved from Laravel 8 to 9 and using the 3.0-beta I'm getting a "Client error: POST https://graph.microsoft.com/v1.0/users/hello@example.com/sendmail
resulted in a 404 Not Found
response:" error.
I'm using the same mail entries in the .env and the same Azure app as in the L8 version.
Any suggestions?
Did you cleared all the caches?
Holen Sie sich Outlook für Androidhttps://aka.ms/AAb9ysg
From: Rutger Burger @.> Sent: Friday, May 13, 2022 11:53:12 AM To: motze92/office365-mail @.> Cc: Clea Solutions - Moritz Mair @.>; Mention @.> Subject: Re: [motze92/office365-mail] Laravel 9 (Issue #21)
I moved from Laravel 8 to 9 and using the 3.0-beta I'm getting a "Client error: POST @.***/sendmail resulted in a 404 Not Found response:" error. I'm using the same mail entries in the .env and the same Azure app as in the L8 version. Any suggestions?
— Reply to this email directly, view it on GitHubhttps://github.com/motze92/office365-mail/issues/21#issuecomment-1125865156, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJY4DSTFWC4OGGJSNKDFG63VJYRARANCNFSM5OQVO65A. You are receiving this because you were mentioned.Message ID: @.***>
I did just now but no result. I don't know how the user hello@example.com gets there but is not one of mine. I use Guzzle 7.2
I just see al the stars in the emails... the mail is sent to user "hello at example dot com
"
Hi @regrub Do you solved this issue?
No, in fact I did not. I was hoping to spend some time investingating the problem, but I just took the code from version 8 to 9. So I presumed it would work. I kind of need it next week to work so tomorrow start working on it. Is there a new version coming to the beta?
Outlook voor iOShttps://aka.ms/o0ukef downloaden
Van: Gor91 @.> Verzonden: Thursday, August 25, 2022 9:02:23 AM Aan: motze92/office365-mail @.> CC: Rutger Burger @.>; Mention @.> Onderwerp: Re: [motze92/office365-mail] Laravel 9 (Issue #21)
Hi @regrubhttps://github.com/regrub Do you solved this issue?
— Reply to this email directly, view it on GitHubhttps://github.com/motze92/office365-mail/issues/21#issuecomment-1226857732, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL2YD4ECL7KNOKKZSL2SM53V24K77ANCNFSM5OQVO65A. You are receiving this because you were mentioned.Message ID: @.***>
It seems that you are using the wrong userprincipal name. Can you try to go to https://developer.microsoft.com/de-de/graph/graph-explorer, Sign in with the account you are using to send the mail and do a request to https://graph.microsoft.com/v1.0/me ? In the response, you find the userprincipalname, which should be the from address.
Thank you for looking into this. I made a mistake and missed just that with the upgrade to Laravel 9. It works like a dream now. Thanks!
Rutger
Van: motze92 @.> Datum: donderdag, 25 augustus 2022 om 10:26 Aan: motze92/office365-mail @.> CC: Rutger Burger @.>, Mention @.> Onderwerp: Re: [motze92/office365-mail] Laravel 9 (Issue #21)
It seems that you are using the wrong userprincipal name. Can you try to go to https://developer.microsoft.com/de-de/graph/graph-explorer, Sign in with the account you are using to send the mail and do a https://graph.microsoft.com/v1.0/me request? In the response, you find the userprincipalname, which should be the from address.
— Reply to this email directly, view it on GitHubhttps://github.com/motze92/office365-mail/issues/21#issuecomment-1226944439, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL2YD4F2BOWJKSSU3CFWET3V24U5DANCNFSM5OQVO65A. You are receiving this because you were mentioned.Message ID: @.***>
Have installed this on a new Laravel 9 and I get "Class "Illuminate\Mail\Transport\Transport" not found" on "\vendor\motze92\office365-mail\src\Transport\Office365MailTransport.php: 10"