Cant send Mails via Workflow CRM 2015

Hi,
I have two workflows for Cases ... in booth I'm trying to send Mails. In the on it works fine. In the other I'm getting the following Error:
[Recipient is Contact or Responsible Contact]
Plugin Trace:
[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.SendEmail]
[SendEmailStep3: Send Mail To Responsible]
Error Message:
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.Crm.Workflow.Services.SendEmailActivityService.<>c__DisplayClass1.<SendEmailInternal>b__0(IOrganizationService sdkService)
   at Microsoft.Crm.Workflow.Services.ActivityServiceBase.ExecuteInTransactedContext(ActivityDelegate activityDelegate)
   at Microsoft.Crm.Workflow.Services.SendEmailActivityService.ExecuteInternal(ActivityContext executionContext, SendEmail sendEmail)
   at Microsoft.Crm.Workflow.Services.SendEmailActivityService.Execute(ActivityContext executionContext, SendEmail sendEmail)
   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Any ideas what I can do?
Thanks for your help
EDIT: the first workflow is from the 2013 Version .. the second not working prozess is buildet in 2015

Hello Mcgum,
Though I am not a techie :(, I guess this is due to some privilege issue. Check if the current user is enabled to send emails on behalf of other user.
I hope it should work.
Regards, Abhishek Bakshi If you find this post helpful then please Vote as Helpful and Mark As Answer. Check my blog on https://mydynamicscrmblog.wordpress.com/

Similar Messages

  • Cant Send Mail via DSL

    Im Apple Mail using iMac G4 and G4 tower. Both will recieve an send mail find via dial-up but will not send mail via dsl connection.
    We get our mail via ethernet > router > antenna > atenna > another router > antenna > ten miles away at another antenna then to dsl source.
    So our dsl connection/signal is going threw three other antennas and at least one router here in office before we get it.
    My ISP provider says we need to talk to our DSl provider.
    Any ideas? Our computer tech is out of office touch for a week.
    Ran

    Thanks but this doesn't answer my question.
    Allan, I am 99% percent sure that my ISP is not the same ones who supply our ethernet/broadband/DSL.
    Is your internet service provider (ISP) for your
    dial-up connection different from the ISP for the DSL
    connection?
    Yes, I believe that they are differrent, however, I have new info.
    At first my G4 tower with Earthlink account would not send out over etherner/broadband/DSl, but now it does! I, nor anyone else, has made any changes to the outgoing address that works for dial-up connection and is what we have always used until yesterday when we first tried the dsl/braoband
    Kind of a different situation and not typical or the
    norm to have a company that provides a DSL connection
    not be the internet service provider for the
    connection.
    Someone new came into our building for office space. He had the router, ethernet cables and antenna installed. He/we get electro-magnetic radiational signal from a larger business across the street who has a tower --soon to be a taller tower-- and they get there radiational signal from 10 miles away.
    Knowing who your ISP is for connecting to the
    internet regardless if using a dial-up connection or
    a DSL connection (DSL is considered a broadband) is
    important and if the email account and SMTP server
    being used is provided by the ISP being used for your
    internet connection or by a different email account
    provider not associated with the ISP used for
    connecting to the internet.
    Yes, I understand that is the case. Maybe I'm wrong and by some coincidence the DSL provider is Earthlink and that is why the G$ tower account began working for the outoging mail.
    Im still having the sam problem on the G4 iMac which is a local.com account they have told us the same as you have, that we need to know who the DSL provider is and what info they require in the outgoing( smtp ) line.
    You mentioned Earthlink which is an internet service
    provider that offers dial-up access and/or DSL access
    so does the Earthlink protocol you mentioned mean you
    are having problems sending with an Earthlink email
    account and SMTP server?
    Earthlink account is working now so again perhaps the DSL provider is coming through Earthlink and ergo we didnt need to make changes to the outgoing( smtp ) info line.
    Thats the only way that one can be explained.
    I take it you use the dial-up connection at home
    (which is provided by Earthlink?) and the DSL
    connection is used at the office?
    Thats correct. The inital DSl source for the business that is 10 miles away, must use Earthlink. I'm now presuming this is the case with this new info.
    However, there is another --3rd-- business on other side of street and he uses --Apple mac just like me-- and his ISP is "host centric". I looked at his mac preference accounts outgoing ( smtp ) line and his is
    "mail.the business name.com:his email address",
    i.e. he does not use Earthlink but he has no problem sending out mail via the same DSl/broadband connections we have
    The only reason he has his address in the outgoing mail liine is bceause he too is in larger business building with several differrent computers and email address's.
    I've tried all kinds of combinations that are similar to the Earthlink outgoing and the hostcentric outgoing
    but none work for the local.com account.
    The exact error message provided when trying to send
    messages is also pertinent information.
    "message delivery failed" "the attempt to read data from the server 'server-name' failed"
    Then it gives me option to try differrent server names.
    Thanks for your efforts Allan and ohters.
    Ran

  • C6-01- Cant send mail via yahoo mail

    I have set up my yahoo mail account on my Nokia C6-01. I receive mails as they should do. But I Cant send mail. When I compose a mail and try to send it it just stays in outbox. I have set the mailbox settings correctly. While my gmail account works fine to send mails. Mails are sent instantly. Is anyone else going thru this trouble? And I Cant set up the Ovi mail mailbox. It keeps telling me "unable to sign in" How shall I solve this problem?
    In Love With My C6-01:Now running on Nokia Belle!
    Solved!
    Go to Solution.

    Well, it works fine if you use Nokia messaging service. If you use the standard mailbox it has been failing. I have some reservations about Nokia messaging service and thats why I dont want to use it.
    In Love With My C6-01:Now running on Nokia Belle!

  • Nokia X6 cant send mail via IMAP

    I have difficulty sending emails via my Nokia X6 using IMAP.
    My laptop works with no problems whatsoever, and my X6 is configured exactly like my laptop, from server and port...
    I'm able to get emails on my X6 but it's just that darn sending
    Please, i despiratly need help with this

    have a look here
    http://www.google.ie/url?sa=t&source=web&cd=1&ved=0CBMQFjAA&url=http%3A%2F%2Femail.nokia.com%2Faccou...
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • Sending mails via workflow..

    Hi All,
    I have a requirement in my service request.. when I change the status of the request a mail should be send to the intended recepient.
    How to make this possible, Is it possible via calling an FM or else some settings in the workflow / Actions ??..
    Thanks & Regards, Sudeep..

    hi Sudeep,
    based on my experience, you can achieve it via 2 way :
    1. action
    2. workflow
    i prefere the option 1 via action.
    in order to do that then you need to configure the action profile for your transaction.
    add an action definition with processing type 'Smart Form Mail' or 'Calling Method'.
    after that you need to modify some BADI to send the mail.
    the function module that can be used for sending e-mail is SO_DOCUMENT_SEND_API1
    hopes it helps
    cheers

  • Cant send mail via applescript with mail rule

    I created a script that would work as follows:
    I send myself an email. The mail rule opens up an apple script that will take a picture using the isight camera and then email it back to me. It works fine in script editor. When i run it via mail.app it takes the picture but it wont email it back to me.
    Here is my script:
    do shell script "~/Documents/EmailScripts/isightcapture ~/Documents/EmailScripts/snap.jpg"
    tell application "Mail"
    set addrVar to "[email protected]"
    set subjectvar to "Macbook Pic"
    tell application "Finder"
    set the target_file to alias "Macintosh HD:Users:ak406:Documents:EmailScripts:snap.jpg"
    set bodyvar to "Picture from Macbook"
    end tell
    set composeMessage to (make new outgoing message)
    tell composeMessage
    make new recipient at beginning of to recipients with properties {address:addrVar}
    set the subject to subjectvar
    set the content to bodyvar
    tell content
    make new attachment with properties {file name:target_file} at after the last word of the last paragraph
    end tell
    end tell
    send composeMessage
    end tell
    Thanks for the help.

    Hi ak406
    Just tested your script here, less the do shell script part and it worked perfectly from my mail app.
    Budgie

  • Sending mail from workflow or Updating container from FM

    Dear friends,
    I'm new to work flow.
    My requirement: send mail from workflow to a user after dead line is missed I do not want to use messages in 'Latest end' tab. I want to send mail.
    The mail id of the user is determined in the previous step using a FM. How do I use this mail id to send the mail. I thought of using 'Rule' option in 'Send Mail' (and use same FM)but thats not possible. In that case how do I pass the mail id value to the WF container from the FM?
    I also tried this idea:
    created a task with BOR object SELFITEM, method 'SENDTASKDESCRIPTION' .
    *in an activity step used this task and filled the 'Rule' option in notification tab appropriately
    *in this case the WF goes into an error '.....error executing 'sendtaskdescription' .....'
    *i would prefer using the activity step because, the mail has to be sent after a delay
    Is there any other simple method to do this?
    My problem would be solved even if someone can show me how to transfer values from a FM into a WF container.
    Can someone please explain?

    Hi,
    => To get the deadline worked via programming, you can write your own logic. In current case,
    1. Create a custom function, having proper input and output parameters like End Time to wait if in case you have maximum of 2 days of wait.
    The total wait time is calculated from the Endtime, which is input to function module.  From the Endtime, the start date and end date are calculated and then the difference between the two dates is counted as total wait time.
    Here at the most 2 days of wait time is calculated.
    * Local parameters
      DATA: LV_UTCSTART TYPE /SDF/CMO_TSTMP,
            LV_UTCEND   TYPE /SDF/CMO_TSTMP,
            LV_SECOND   TYPE /SDF/CMO_SEC,
            LV_ENDDATE  TYPE SY-DATUM,
            LV_STR TYPE STRING.
      IF ENDTIME >= SY-UZEIT AND ENDTIME <= '235959'.
    *   Today's date
        LV_ENDDATE = SY-DATUM.
      ELSE.
    *   Tomorrow's date
        LV_ENDDATE = SY-DATUM + 1.
      ENDIF.
    * Get the Start Time for function module
      CONCATENATE SY-DATUM SY-UZEIT INTO LV_STR.
      MOVE LV_STR TO LV_UTCSTART.
      CLEAR LV_STR.
    * Get the End Time for function module
      CONCATENATE LV_ENDDATE ENDTIME INTO LV_STR.
      MOVE LV_STR TO LV_UTCEND.
      CLEAR LV_STR.
    * Get the total wait time in seconds
      CALL FUNCTION '/SDF/CMO_TIME_DIFF_GET'
        EXPORTING
          UTC_START = LV_UTCSTART
          UTC_END   = LV_UTCEND
        IMPORTING
          SECOND    = LV_SECOND
        EXCEPTIONS
          PARAMERR  = 1
          OTHERS    = 2.
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Wait for total time
    WAIT UP TO LV_SECOND SECONDS.
    2. Now, create one method in the BOR object whose event triggers your workflow.
    3. Use this method in an activity step in you workflow where you want to wait on some given conditions.
    => You can use the email ID which was given by earlier step in Send Mail step. Just make your email id field as Export/Import <i><b>AD_SMTPADR</b></i> type of parameter. In the send mail, use this Id in Email Address input.
    Hope this helps your.
    PS If the answer solves  your query, plz close the thread by marking it Solved and rewarding each reply.
    Regards

  • Problem in sending mail through workflow

    Hi All,
      I am trying to create a workflow. I created a workflow and once document is made, this workflow trigerrs and i am able to get user decision to my user id. once if i click on approve, mail should be triggered to my mail id. but mail is not coming to my mail id. i checked in SOST transaction, <b>mail status set to Transmitted.</b>, and not as sent .
    But i tested a sample test message from sbwp to my mail id and it is working fine. Only through workflow, sending message to outlook is not working. i checked my user in the system in SU01 transaction also, there also mail id is mentioned. what could be reason for not able to send mails through workflow.?
    Its urgent.
    Points will be awarded to all.
    Regards,
    vinoth

    Hi,
    Check that all the bindings have been done in proper way as it is configured.. Try to do the binding manualy..This could also be the problem..
    thank You

  • Sending Mail from workflow or updating container elements

    Dear friends,
    I'm new to work flow.
    My requirement: <b>send mail from workflow to a user after dead line is missed</b> I do not want to use messages in 'Latest end' tab. I want to send mail.
    The mail id of the user is determined in the previous step using a FM. How do I use this mail id to send the mail. I thought of using 'Rule' option in 'Send Mail' (and use same FM)but thats not possible. In that case how do I pass the mail id value to the WF container from the FM?
    I also tried this idea:
    created a task with BOR object SELFITEM, method 'SENDTASKDESCRIPTION' .
    *in an activity step used this task and filled the 'Rule' option in notification tab appropriately
    *in this case the WF goes into an error '.....error executing 'sendtaskdescription' .....'
    *i would prefer using the activity step because, the mail has to be sent after a delay
    Is there any other simple method to do this?
    My problem would be solved even if someone can show me how to transfer values from a FM into a WF container.
    Can someone please explain?

    Reposted under different thread

  • Surname not recognized when sending mail via FM

    Hi SDN,
    I am on WAS 6.20. SRM System.
    I have a BSP, which sends mail via FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    when putting a normal dialog user in the ICF Service of the BSP I get a mail in my email client, which shows as sender the forename, surname of the corresponding SU01 SAP User. When putting service user in the ICF service the sender, which shows up in my email-client is always 'www' even though I changed fore- and surname of this service user. Why is that?
    regards, matthias
    Message was edited by: Matthias Kasig
    Message was edited by: Matthias Kasig

    I am with you. I think they still have a dud server in their farm and when you get it you get the error message. How to get to level two support is the trick I think.

  • Sending mail via forms no longer working

    Recently, on one of our servers (XServe G4 - 10.3.9) was running both web and mail. Mail was moved off of the server 2 days ago onto a newer server (10.4.7)
    The web server has: php4.3.11 and is ONLY running AFP/OD/Web
    Since the transfer of the mail server to the new machine, all web sites can no longer send mail via their scripts (either by sendmail, php's mail(), or by connecting to SMTP server via php).
    The web logs do not show errors when it attempts to send the mail...
    A look at mail.log shows
    "relay=cyrus, delay=2558, status=deferred (temporary failure. Command output: couldn't connect to lmtpd: Connection refused_ 421 4.3.0 deliver: couldn't connect to lmtpd_)
    As far as I'm aware, the web server/sendmail shouldn't be attempting to use cyrus at all. For the record, Cyrus master is not running.
    All users can access the mail server without any difficulty. DNS entries have been checked and double checked.
    Does anyone know why sendmail and php mail functions stopped working? I really need to get these web forms functioning again. Is the problem with apache, php, sendmail or something else?

    Hi Camelot,
    Thanks for the quick reply and useful suggestion. I did as you mentioned and fired up the mail server.
    The mail "delivered" however, I notice a couple issues in the logs (mail.log)
    issue #1: I have to start cyrus master manually via > sudo /usr/bin/cyrus/bin/master SA and command line start/stop of mail does not start master. Also, when starting master from command line as mentioned, terminal hangs.
    issue #2 (from mail.log) - still getting the same lmtpd error (but messages do finally get delivered):
    Jan 14 03:58:24 www postfix/pipe[2914]: 3503858502D: to=<[email protected]>, relay=cyrus, delay=5327, status=deferred (temporary failure. Command output: couldn't connect to lmtpd: Connection refused_ 421 4.3.0 deliver: couldn't connect to lmptd_ )
    Jan 14 03:59:39 www postfix/cleanup[2906]: B60AE58572B: to=<[email protected]>, relay 123.123.123.123[123.123.123.123], delay=0, status=sent (250 Ok: queued as 9FBF41BCBCA)
    Do you think these are "issues" to contend with or are they "normal" occurances?

  • Alias address from iCloud alias address cannot be used to send mails via iPad

    Alias address from iCloud alias address cannot be used to send mails via iPad

    If you still have this concern: You can only use the alias address linked to the main iCloud account that you backup your iPad to. You can check that going to Setting-iCloud and check the Account email address.
    I think this restriction is rather rediculous. I don't see why we can't configure an alias from a different iCloud account the same way we do for a Gmail account. I hope Apple fixes this in iOS 6.

  • Cant send mail w 2WIRE

    Cant send mail using gateway 2WiRE w/ ATT as ISP

    Hi kzo631, and a warm welcome to the forums!
    ATT has so many servers & plans, which one are you using & the Port #s?
    Is the Incoming Mail Server pop.att.yahoo.com, and the Outgoing Mail Server smtp.att.yahoo.com.

  • TS4002 I cant send email via icloud account.  I have a BT router for vision.  Can anyone help please

    I cant send email via icloud account.  I have a BT router for vision

    Thanks for the suggestion - it turned out that it was actually my workplace's network that automatically blocks external SMTP servers (for some security reason), so the email(s) sent perfectly once I went home and connected to May home network. Annoying!

  • Still Cant send mail? HELP PLEASE!

    I am connected to the server.
    POP3 and SMTP look corrected.
    Connection doctor says I am connected to the server.
    I can receive mail.
    but
    I CANT SEND ANYTHING.
    Please help can someone tell me why post is not going!

    even i am facing the same issue i am using email account which is on exchange server 2008 and able to recieve emails perfectly fine but, issue is when i try to send email thru my Mac mail client ( mail 3.0 [930.3]) it gives error. I checked this connection doctor as well didnt got any error messAGE authentication was done . But still cant send mail out checked for ports as well all are open on router firewall but still no luck can anyone help me on this. Thanks

Maybe you are looking for