But here's the thing: There's no chance (or very little, anyway) that you're going to get anyone here to look at your whole program and try to figure out what's wrong with it. You gotta give us some hints: "I run it, and in such-and-such a statement it stops and gives me an error message saying thus-and-so". Or "it seems to work, but the email has this attachment rather than that one". Some kind of detail, anyway.