﻿#### 

I was working with Email Experience Manager 3.3.0 rev. 160527 (EXM) a few weeks ago and I’ve experienced an unusual issue during the implementation. The task was to integrate a new html for corporate emails. I’ve created a new layout and renderings, copied the EXM’s “Newsletter Message” branch template (https://www.brimit.com/sitecore/templates/Branches/Email Campaign/Messages/Newsletter/Newsletter Message), set the newly created renderings to it and added a new insert option for the new email creation based on my branch template.

I was following the regular steps:

1. create new email based on my branch;
2. set the Included recipient lists (at least with the my email for testing);
3. set the Excluded recipient lists;
4. set the Subject;
5. configure the email body;
6. go to the delivery tab and click "Send message";

I should have received the message….. But have not! Instead, I received the notification: “The message status has been changed to 'Paused'”.

![ exm field blank](https://www.brimit.com/-/media/images/blog/exmissue1.png?la=en&amp;hash=D67E80F3679218288D11E0C8C92334D4)

Checking the EXM log to understand what happened I've found the error:

MessageTaskRunner worker thread 1 10:25:05 ERROR Message sending error: System.AggregateException: One or more errors occurred. ---&gt; System.ArgumentException: **Empty strings are not allowed**.

Parameter name: **message.Subject**

at Sitecore.Diagnostics.Assert.ArgumentNotNullOrEmpty(String argument, String argumentName)

at Sitecore.EDS.Core.Net.Smtp.MessageTransport`1..ctor(EmailMessage message)

at Sitecore.EDS.Providers.CustomSmtp.DispatchProvider.&lt;SendEmailAsync&gt;d\_\_5.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at 

………………………………..………………………………..…………………………………

………………………………..………………………………..…………………………………

………………………………..………………………………..…………………………………

Looks like I've forgot to set the Subject field. I’ve opened the email and checked the subject. It was really empty. Filled in the subject field and tried to send the email over and over again. Result was the same… Every time.  

### Solution

Solution to the issue was really simple, but I had to spent a lot of time to resolve it. 

The fact is that EXM checks if email has the “Set Page Title” rendering (https://www.brimit.com/sitecore/layout/Renderings/Email Campaign/Set Page Title) at the presentation. And if it is not, EXM will skip subject and leave it blank. As a result, EXM throws the exception. After adding the rendering, the issue was solved. 

![item insert](https://www.brimit.com/-/media/images/blog/exmissue2.png?la=en&amp;hash=C35109CA8B335733893E9F11E80A5302)

The “Set Page Title” rendering has to be added between the &lt;head&gt;&lt;/head&gt; tags: 

![email header ](https://www.brimit.com/-/media/images/blog/exmissue3.png?la=en&amp;hash=D3369536C6DF7AD2D9A3A2463B1F0647)

**IMPORTANT!** Make sure that The “Set Page Title” rendering is added at the **Shared Layout**. If it is added to the Final Layout, it will not work.

Please [let us know](https://www.brimit.com/contact-us "EXM issue feedback") if you find it helpful or if you may suggest a better solution.

###### Author

[!\[artsiom-photo\](https://www.brimit.com/-/jssmedia/feature/blogs/authors/artsiom-200.jpg?h=202&amp;iar=0&amp;w=200&amp;hash=41797D2540DF6EB6FDF558360F6F62B8)
Artsem Prashkovich
Sitecore MVP/ Solution Architect](https://www.brimit.com/blog/author?authors=Artsem%20Prashkovich)

#### More on Sitecore

[!\[How Vercel Will Help You Save Effort When Deploying Sophisticated Sitecore Projects\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2024/vercel_cover-image.png)
#Guides#How-toDXPE-commerce
##### How Vercel Will Help You Save Effort When Deploying Sophisticated Sitecore Projects
Optimize and accelerate the development and deployment of complex multisite Sitecore projects.
Alexei Vershalovich on July 17, 2024](https://www.brimit.com/blog/how-vercel-will-help-you-save-effort-when-deploying-sophisticated-sitecore-projects)

[!\[Training Up Tomorrow's Sitecore MVPs: a Mentoring Success Story\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2023/sitecore-mentoring---cover-image.png)
#How-toDXP
##### Training Up Tomorrow's Sitecore MVPs: a Mentoring Success Story
How to participate in the Sitecore Mentor program and help younger colleagues jump-start a career in Sitecore development.
Sergey Baranov on October 2, 2023](https://www.brimit.com/blog/training-up-tomorrows-sitecore-mvps)

[!\[Going Headless. Part 2: When a Headless CMS Is Your Best Bet (if you have Sitecore)\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2022/headless/adobestock_456986731.jpg)
#How-toDXPE-commerce
##### Going Headless. Part 2: When a Headless CMS Is Your Best Bet (if you have Sitecore)
Discover how a headless CMS can benefit organizations that use Sitecore.
Daniil Raschupkin, Palina Trokhautsava on September 15, 2022](https://www.brimit.com/blog/going-headless-part-2-when-a-headless-cms-is-your-best-bet-if-you-have-sitecore)

![](https://bat.bing.net/action/0?ti=187017043&amp;tm=gtm002&amp;Ver=2&amp;mid=703b9275-1392-4f63-a948-02705d9d6060&amp;bo=2&amp;gtm_tag_source=1&amp;pi=0&amp;lg=en-US&amp;sw=800&amp;sh=600&amp;sc=24&amp;nwd=1&amp;tl=Issue%20with%20Empty%20Subject%20Field%20in%20Sitecore%20EXM&amp;kw=Sitecore,%20EXM,%20field,%20Subject,%20Empty,%20message,%20issue,%20layout,%20corporate%20email,%20Email%20Experience%20Manager&amp;p=https%3A%2F%2Fwww.brimit.com%2Fblog%2Fsitecore-exm-empty-field-issue&amp;r=&amp;lt=281&amp;evt=pageLoad&amp;sv=2&amp;asc=D&amp;cdb=AQAY&amp;rn=648722)