• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Technology
    • Development
    • Hardware
    • Intune
    • Microsoft
    • Office
    • Office 365
    • Security
    • SharePoint
    • Software
    • SQL server
  • Personal development
    • Blog
    • Career
    • Freelancer
    • Knowledge
    • NEWS
    • Private
    • Thoughts
  • Consulting services
  • Contact me

Not only IT

About life, IT and other things...

Home » Technology » Development » Problem with SendEmail in SharePoint workflow.

Problem with SendEmail in SharePoint workflow.

August 27, 2010 By Tomasz Szulczewski Leave a Comment

Recently I had strange problem. I’ve created workflow with Visual studio 2008 which and I would like to use Workflow component: “SendEmail” for some cases. And if I enter directly into component email address for field: “TO” the message will be delivered. But if I use simple code with the same email address for field ”TO” it doesn’t work (field TO is empty now).

private void sendEmail_ExecuteCode(object sender, EventArgs e)

{

sendWithInformation.To = @”myemail@domain.com” ;

sendWithInformation.Subject = “Subject” ;

sendWithInformation.Body = “Body message” ;

}

And I need this code as in production environment field TO will be changing. There were just entry in log file:

08/24/2010 16:02:06.99 w3wp.exe (0x021C) 0x16F8 Windows SharePoint Services General 8kh7 High Can’t finish this action . Try again.

So, what’s going on? I try different solutions and without any result. Until I get response from Ginni Sharma on my post  . It was necessary to create variable for this component which holds “TO” field. And then If I assign email address to it message will be delivered. Strange…

Related

Filed Under: Development, SharePoint Tagged With: SharePoint

About Tomasz Szulczewski

I've got more than 20 years of IT experience. IT is my passion and I am still increasing my skills. I work as a SharePoint, Office 365 and Azure architect.

Reader Interactions

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Join the Newsletter

Social media

  • Facebook
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube

Search this site

Sign up for Wise accounts

Signup and earn $25

payoneer
payoneer

My latest achievement

Microsoft 365 Certified: Enterprise Administrator Expert
Microsoft 365 Certified: Enterprise Administrator Expert

Tags

Azure Azure Active Directory BizSpark Blog career Certification cloud conference edge freelance Freelancer Hardware home office InfoPath Intune Knowledge licensing Microsoft Microsoft 365 News Office Office 365 Personal development Power virtual agent Private security SharePoint SharePoint designer SharePoint online Software SQL server upwork Windows Windows 365 yammer

Footer

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright © 2022 Tomasz Szulczewski