---
title: getFromEmailPrefix
slug: campaign/docs/getfromemailprefix
docTags: 
createdAt: 2026-07-02T19:01:45.941Z
---

This is the part of the email address before the @ sign.

**Type**: String

**Parameters**

| Name      | Type   | Value             |
| --------- | ------ | ----------------- |
| sessionId | String | ID of the session |
| mailingId | long   | ID of the mailing |

**Return values**

Email prefix of the sender of the mailing

**Code structure**

```javascript
String getFromEmailPrefix(string sessionId, long mailingId)
```
