Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paul Seal 524 posts 2889 karma points MVP 7x c-trib
    Nov 08, 2021 @ 23:09
    Paul Seal
    0

    Newsletter Studio v9 testing

    Hi

    I tried to send a test email using the demo campaign and it was unable to send the email.

    This was the error in the network tab.

    )]}',
    {"type":"https://tools.ietf.org/html/rfc7231#section-6.5.13","title":"Unsupported Media Type","status":415,"detail":null,"instance":null,"extensions":{"traceId":"00-f6e8e49a9ac5ea4a9decf7e611b8eaff-270c3f5f0010c941-00"}}
    

    Here are the settings I have in appsettings.Development.json

    "Global": {
            "Smtp": {
              "From": "[email protected]",
              "Host": "127.0.0.1",
              "Port": 25
            }
          },
    

    I am also using smtp4dev which normally works with these settings

    I hope it helps

    Paul

  • Markus Johansson 1938 posts 5866 karma points MVP 2x c-trib
    Nov 09, 2021 @ 08:10
    Markus Johansson
    0

    Hi Paul!

    Thank you so much for testing out the RC for Umbraco 9!

    It looks like it might be some validation error or something, do you happen to know which API-endpoint that returned the 415-status?

    It might be related to configuration. You need to configure a Email Service Provider for the Workspace (Administration -> Manage). The default setting is a SMTP Pickup that will put email is c:\temp\smtp so I guess it might be related to permissions?

    This gave me an idea that we should have a provider that uses the appSettings.config-settings as well.

    // m

  • Paul Seal 524 posts 2889 karma points MVP 7x c-trib
    Nov 09, 2021 @ 09:26
    Paul Seal
    1

    The endpoint was

    https://localhost:44304/umbraco/backoffice/NewsletterStudio/Campaign/SendTestEmail

    There is nothing to tell you what went wrong in the UI, maybe a notification would be good here, to tell you where and how to set up the mail sending settings.

    This is how I send emails using the appsettings.json settings https://github.com/prjseal/Clean-Starter-Kit-for-Umbraco-v9/blob/main/Clean.Core/Controllers/Surface/ContactSurfaceController.cs

    Cheers

    Paul

  • Markus Johansson 1938 posts 5866 karma points MVP 2x c-trib
    Nov 09, 2021 @ 10:40
    Markus Johansson
    0

    Hi!

    Thanks! Yes, I agree - i think that there is some error with how the error gets serialized. I need to check.

    Thanks! I'll have a look =D

Please Sign in or register to post replies

Write your reply to:

Draft