# CampaignEmailMessageProperty

Struct · External

Specifies the content and "From" address for an email message that's sent to recipients of a campaign.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pinpoint as pinpoint } from 'aws-cdk-lib';
const campaignEmailMessageProperty: pinpoint.CfnCampaign.CampaignEmailMessageProperty = {
  body: 'body',
  fromAddress: 'fromAddress',
  htmlBody: 'htmlBody',
  title: 'title',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_pinpoint as pinpoint

campaign_email_message_property = pinpoint.CfnCampaign.CampaignEmailMessageProperty(
    body="body",
    from_address="fromAddress",
    html_body="htmlBody",
    title="title"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.pinpoint.*;

CampaignEmailMessageProperty campaignEmailMessageProperty = CampaignEmailMessageProperty.builder()
        .body("body")
        .fromAddress("fromAddress")
        .htmlBody("htmlBody")
        .title("title")
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Pinpoint;

var campaignEmailMessageProperty = new CampaignEmailMessageProperty {
    Body = "body",
    FromAddress = "fromAddress",
    HtmlBody = "htmlBody",
    Title = "title"
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

campaignEmailMessageProperty := &CampaignEmailMessageProperty{
	Body: jsii.String("body"),
	FromAddress: jsii.String("fromAddress"),
	HtmlBody: jsii.String("htmlBody"),
	Title: jsii.String("title"),
}
```

## Properties

- `body`: string — The body of the email for recipients whose email clients don't render HTML content.

- `fromAddress`: string — The verified email address to send the email from.

  The default address is the `FromAddress` specified for the email channel for the application.

- `htmlBody`: string — The body of the email, in HTML format, for recipients whose email clients render HTML content.

- `title`: string — The subject line, or title, of the email.
