Question: This is a long shot. I have no idea why this is happening, and I am hoping this is something someone else has run into.

I have an email utility that sends me an email whenever a user gets an error, and I use it like so:

```
MyUtility.SendEmail(shortNTID,
                    "support@mycompany.com",
                    new string[] { "supportlist@mycompany.com" },
                    "Application error has occured for user: " + shortNTID,
                    "Message: " + ex.Message.ToString() +
                    " Source: " + ex.Source.ToString() +
                    " Target Site: " + ex.TargetSite.ToString() +
                    " Stack Trace: " + ex.StackTrace.ToString());

```

Now for some reason today I got some emails from the application that had this in the subject AND the body:

> 
> Application error has occured for
>  user: Example User
> 
> 
> 

That text should only be in the subject. In addition, the rest of the message body was blank, but obviously should have exception details.

To reiterate, there are two wierd things about this:

1. I have done a search through my application using "Find" for "Application error has occured for user:" and there are only a few places, and nowhere do I have this text in the message body.
2. The email is supposed to have all that exception information in the message body, and the emails had nothing but that sentence "Application error has occured for user: Example User"

Any ideas what is going on?

Answer: 
This will run a job weekly:

```
0 0 * * 0 /path/to/php yourscript.php

```

[Nice intro](http://ss64.com/osx/crontab.html) to cron and crontab.
TO your problem there is 2 step solution   

1. Create cron tab using `crontab -e` command, add a following line to your cron: `0 0 * * 0 php your/php/script/path/email_script.php`
2. Create a Email script and write yor email functions here.  

Note: If you are including a file in your script make sure that you give full path "/var/www/"