active-directory-dotnet-graphapi-b2bportal-web icon indicating copy to clipboard operation
active-directory-dotnet-graphapi-b2bportal-web copied to clipboard

Error with custom SMTP

Open ankbs opened this issue 8 years ago • 8 comments

Hello, when i try to send with custom SMTP and a custom eMail Template, there is an error.

Error: Object reference not set to an instance of an object.
Server response: {"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#invitations/$entity","id":"0f9c2299-dda8-491d-YYYYY-a952c969a279","inviteRedeemUrl":"https://invitations.microsoft.com/redeem/?tenant=016a5c66-fd2a-4269-YYYYYY-badd3f3f7c5c&user=0f9c2299-dda8-491d-YYYYY-a952c969a279&ticket=dWLcgdXEMnkmwIRTivPAXtxfBugwyevIanV3EvGzgy4%3d&lc=1033&ver=2.0","invitedUserDisplayName":"ab2b2 cb2b2","invitedUserType":"Guest","invitedUserEmailAddress":"[email protected]","sendInvitationMessage":false,"invitedUserMessageInfo":{"messageLanguage":null,"ccRecipients":[{"emailAddress":{"name":null,"address":null}}],"customizedMessageBody":null},"inviteRedirectUrl":"https://azureb2bgroupportal-XXXXXXXX.azurewebsites.net/profile","status":"PendingAcceptance","invitedUser":{"id":"cb4244fc-02ba-4604-a906-9942562e55f8"}}

Mail with AZURE integrated is running, but without custom email.

Whats' wrong here?

Thank you (i'm using the latest build, but the error was before, too.

ankbs avatar May 14 '17 23:05 ankbs

Can you paste the call stack? The design is to send via the B2B API by default, and to send via SMTP if all of the SMTP settings (SMTPLogin, SMTPPassword, MailServer, SMTPPort) are populated in the app settings. And yes, there was a bug fixed in that section of code in the latest update...

bretthackermsft avatar May 16 '17 17:05 bretthackermsft

Hey Brett, I have deployed the App into my Bizspark subscription with various SMTP Email services (sendgrid/MailJet...) , and I still receive the above error, am I missing something?. The Deny process works fine, but the Approval just bombs out. I have deployed with all the SMTP settings. These settings to Relay Mail

Thanks

busterheyman avatar Feb 15 '18 06:02 busterheyman

Hey Brett, I am having the same issue. Can you help ?

SyndicateOfSwing avatar Jun 29 '18 02:06 SyndicateOfSwing

Hi Brett, I am having the exact same issue. Can you help?

zjorz avatar Oct 28 '18 17:10 zjorz

Hi,

Is there a newer version (any fork) that does not have the issue with the error when approving the guest request through the webbapp

zjorz avatar Oct 30 '18 13:10 zjorz

Can you paste the call stack? The design is to send via the B2B API by default, and to send via SMTP if all of the SMTP settings (SMTPLogin, SMTPPassword, MailServer, SMTPPort) are populated in the app settings. And yes, there was a bug fixed in that section of code in the latest update...

Hi Brett, I deployed the latest master version to Azure. I'm still getting the error when approving the invitation request through the App. I get the same error as the original poster. I have tried to solve this myself, but cannot find it. Can you help or give a hint? Thanks, regards jorge

zjorz avatar Nov 01 '18 12:11 zjorz

Me too... I have the same problem, It doesn't work with custom mail server ( I tried both smtp.office365.com and an open relay server)

gabrieligm avatar Nov 13 '18 19:11 gabrieligm

Was anyone able to resolve this?

SB-o-matic avatar Sep 16 '19 02:09 SB-o-matic