Copied to clipboard

Flag this post as spam?

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


  • Iain Ogston 11 posts 31 karma points
    Jul 02, 2013 @ 09:59
    Iain Ogston
    0

    Stop all email notifications

    I have an Umbraco installation with an empty <mailSettings/> in the web.config file.  This is because I don't want this installation to send any emails, so I'm not specifying an SMTP host.

     

     

     

     

    However, my UmbracoLog table is now full of the following error:

     

     

     

    in notification: System.InvalidOperationException: The SMTP host was not specified

     

    at System.Net.Mail.SmtpClient.CheckHostAndPort

     

    at System.Net.Mail.SmtpClient.Send(MailMessage message

     

    at umbraco.cms.businesslogic.workflow.Notification.sendNotification(User performingUser, User mailingUser, Document documentObject, IAction Action)

     

    at umbraco.cms.businesslogic.workflow.Notification.GetNotifications(CMSNode Node, User user, IAction Action)

    Is there any way in the Umbraco configuration to completely turn off email notifications at the server level such that Umbraco will not even attempt to send email?

  • Comment author was deleted

    Jul 02, 2013 @ 10:45

    Hey,

    Looks like some users are subscribed to notifications and Umbraco is trying to send those, so I would clear those subscriptions and remove the notification option for your users 

  • Alex Skrypnyk 6133 posts 23952 karma points MVP 7x admin c-trib
    Jul 02, 2013 @ 11:19
    Alex Skrypnyk
    0

    Hi Iain,

    Try to delete this section from UmbracoSettings.config
     

        <notifications>

          <!-- the email that should be used as from mail when umbraco sends a notification -->

          <email>[email protected]</email>

        </notifications>

    Thanks,

    Alex

     

Please Sign in or register to post replies

Write your reply to:

Draft