Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

We have a SharePoint system installed. The customer has changed the email system.

After that emails that are sent out in our code using SPMail, and as the user uses the system work OK.

Mails that are sent as part of a workflow are not sent.

Does anyone know what the difference is between these two ways of sending an email?

share|improve this question
    
Are alerts being sent out ok? –  Lori Apr 15 '11 at 14:08
2  
Did you change the outgoing email configuration? Did you try restarting timer service? –  vasya10 Apr 15 '11 at 14:09
add comment

3 Answers

up vote 9 down vote accepted

You will need to go into Central Administration and update the outgoing email settings for the farm to point to the new email server. You should also check that web application itself is pointing to the new email server as well since the Web Application settings override the farm settings.

You also might want to check your Event Logs and LOGS folder to see if there is more specific information about the error.

share|improve this answer
add comment

Dave has a good answer, however, if this has been done, I would check to make sure that the relay is set up correctly to allow all traffic from the IP addresses of all servers in your farm without authentication. It appears that your code may send credentials while the alerts and OOTB workflow emails are not sent using any particular credentials.

share|improve this answer
    
This is also a good place to check as I have now seen two occasions in the past year where applying a Microsoft update has reset the SMTP relay settings back to the default. –  Dave Wise Apr 15 '11 at 20:23
add comment

Glad that you already found a solution. But it also happens that workflow hangs on waiting for an event and thus no further events are triggered.

Many of these issues are fixed with Service Packs and hotfixes, but sometimes the issue remains. In my case, i had to rearrange workflow logic to workaround these issues and just try it the hard way - will it (sometimes) hang this way or not?.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.