---
title: "warning(withLocalizedDescription:)"
framework: mailkit
role: symbol
role_heading: Type Method
path: "mailkit/meaddressannotation/warning(withlocalizeddescription:)"
---

# warning(withLocalizedDescription:)

Indicates an address may be invalid or needs attention.

## Declaration

```swift
class func warning(withLocalizedDescription localizedDescription: String) -> MEAddressAnnotation
```

## Parameters

- `localizedDescription`: A user-visible string with details about why the recipient needs attention.

## Return Value

Return Value An annotation that indicates an email address may not be valid or needs attention.

## See Also

### Specifying Email Address Validity

- [success(withLocalizedDescription:)](mailkit/meaddressannotation/success(withlocalizeddescription:).md)
- [error(withLocalizedDescription:)](mailkit/meaddressannotation/error(withlocalizeddescription:).md)
