motze92 / office365-mail

Office365 transport for Laravel
MIT License
62 stars 21 forks source link

Laravel 9 #21

Closed Martzy303 closed 2 years ago

Martzy303 commented 2 years ago

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"

nikhilbhatia22 commented 2 years ago

Facing the same.

nikhilbhatia22 commented 2 years ago

@Martzy303 Did you manage to solve it in any way?

nikhilbhatia22 commented 2 years ago

This is because Laravel 9 has shifted from SwiftMailer to SymfonyMailer. @motze92 Any near-future plans of making it Laravel 9 compatible?

motze92 commented 2 years ago

I am currently working on a Laravel 9 implementation. I will release it the next days.

motze92 commented 2 years ago

https://github.com/motze92/office365-mail/releases/tag/3.0-beta Beta for Laravel 9 is now available. Large attachments are currently not working.

Martzy303 commented 2 years ago

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.

regrub commented 2 years ago

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?

motze92 commented 2 years ago

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: @.***>

regrub commented 2 years ago

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

regrub commented 2 years ago

I just see al the stars in the emails... the mail is sent to user "hello at example dot com

Schermafbeelding 2022-05-13 om 13 34 11

"

Gor91 commented 2 years ago

Hi @regrub Do you solved this issue?

regrub commented 2 years ago

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: @.***>

motze92 commented 2 years ago

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.

regrub commented 2 years ago

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: @.***>