Question: I have been trying to figure this one out for the last 2 days. I feel like I'm really close, but just can't get it. I've gotten my c# program to successfully send an email with all the required information in it, but I can't change the sender's name and email address. Here is my code so far:

```
Outlook.Application oApp = new Outlook.Application();

string emailrecipient = (Convert.ToString(txtAdmin1.Text) + "@domain.com");

            Outlook.MailItem email = (Outlook.MailItem)(oApp.CreateItem(Outlook.OlItemType.olMailItem));
            email.Recipients.Add(emailrecipient);
            email.Subject = "Your Recent Admin Rights Request";
            email.Body = "Your admin rights request has been processed. The user " + txtAdmin1.Text + " has been added as an administrator on computer " + txtName.Text + ". Please reboot your computer for these changes to take effect.";

            email.Send();

```

any advice would be amazing. I've searched all over the place, and haven't found anything that has worked so far.

Answer: 
I had the same issue (adding theme worked but it produces ugly warnings). I fixed it by explicitly referencing the theme's CSS file by:

1. Add the following to your flexmojos configuration:

```
<themes>
    <theme>spark-theme-${flex.sdk.version}.css</theme>
</themes>

```
2. Add the theme as a dependency:

```
<dependency>
    <groupId>com.adobe.flex.framework</groupId>
    <artifactId>spark-theme</artifactId>
    <version>${flex.sdk.version}</version>
    <type>css</type>
</dependency>

```
3. pull the dependency in to your output directory. There are several ways to do this, including a simple ant copy. I chose to use the maven dependency plugin:

```
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-dependency-plugin</artifactId>
    <executions>
        <execution>
            <id>copy-theme-file</id>
            <phase>process-resources</phase>
            <goals>
                <goal>copy-dependencies</goal>
            </goals>
            <configuration>
                <outputDirectory>${project.build.outputDirectory}</outputDirectory>
                <includeArtifactIds>spark-theme</includeArtifactIds>
            </configuration>
        </execution>
    </executions>
</plugin>

```

Following these steps copies the spark-theme's CSS file to the output directory (/target/classes in most cases) and explicitly refers to the CSS file in in the flexmojos configuration.

This completely got rid of all theme warnings for me. I hope this helps someone.
I am using Flex-Mojos 4.1-beta, and themes "just work" ™ I cannot vouch for earlier versions.

Taking an example, pull in the spark theme (part of the SDK):

```
   <dependency>
        <groupId>com.adobe.flex.framework</groupId>
        <artifactId>spark</artifactId>
        <version>${flex.version}</version>
        <scope>theme</scope>
        <type>swc</type>
    </dependency>

```

Now, pull in the theme which I've earlier, myself defined:

```
    <dependency>
        <groupId>ie.hunt</groupId>
        <artifactId>theme-library</artifactId>
        <version>1.0-SNAPSHOT</version>
        <type>swc</type>
        <scope>theme</scope>
    </dependency>

```

And the 'spark' theme is applied, then overridden by the rules I've defined in my own theme swc. Nothing else to do.

Using the 'themes' subsection of 'plugin'->'configuration' creates unhelpful Null Pointer Exceptions, e.g:

```
 <configuration>
 <themes>
  <theme>spark.css</theme>
 <themes>
 ...
 </configuration>

```

Error output:

```
 [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.1-beta:compile-swc (default-compile-swc) on project theme-library: java.lang.NullPointerException -> [Help 1]

```