# \`Sink.actorRef\` with \`sender\`

**URL:** <https://discuss.akka.io/t/sink-actorref-with-sender/4717>\
**Category:** Akka Streams & Alpakka\
**Created:** [July 28, 2019, 6:35am UTC](https://discuss.akka.io/t/sink-actorref-with-sender/4717 "2019-07-28T06:35:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ignatius](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/ignatius/32/1787_2.png) [@ignatius](https://discuss.akka.io/u/ignatius)\
**Post date:** [July 28, 2019, 6:35am UTC](https://discuss.akka.io/t/sink-actorref-with-sender/4717/1 "2019-07-28T06:35:49Z")

</div>

Say I have an actor that does this:

```auto
  override def receive: Receive = {
      case _ => Source(List(1, 2, 3)).runWith(Sink.actorRef(recipient, Status.Success))

```

The `sender` of `1, 2, 3` will be `deadLetters`. How can I make parent actor that runs the graph the sender of the messages of `Sink.actorRef`?

---

<div class="post-metadata">

**Author:** ![ignatius](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/ignatius/32/1787_2.png) [@ignatius](https://discuss.akka.io/u/ignatius)\
**Post date:** [July 28, 2019, 9:23am UTC](https://discuss.akka.io/t/sink-actorref-with-sender/4717/2 "2019-07-28T09:23:46Z")

</div>

Found the solution:

Instead of

```scala
Source(List(1, 2, 3)).runWith(Sink.actorRef(recipient, Status.Success))

```

do:

```scala
Source(List(1, 2, 3))
    .concat(Source.single(Status.Success))
    .recover({ case e => Status.Failure(e) })
    .runForeach(recipient ! _)

```

I’m keeping monologue here, asking questions and then answering them myself…
