---
title: "Aspose::Email::Clients::Google::Criteria::set_To method"
url: "https://reference.aspose.com/email/cpp/aspose.email.clients.google/criteria/set_to/"
product: "Aspose.Email for C++"
description: "The recipient's display name or email address."
---


## set_To {#set_to}

The recipient's display name or email address. Includes recipients in the "to", "cc", and "bcc" header fields. You can use simply the local part of the email address. For example, "example" and "example@" both match "example@gmail.com". This field is case-insensitive.

**Returns:** void Aspose::Email::Clients::Google::

```cpp
set_To(System::String value)
```

| Parameter | Description |
| --- | --- |
| value |  |

