Simplest way to take a screenshot and email it?

I know the Enhancement Pack does screenshots and it pulls up the email window. But can it simply email a screenshot?

If not, is there a simple way to do this or do I need to write a plugin to do this at the cocoa level?

Here’s the code I use in my app to send an email w/ image using the enhancement pack’s compose mail HTML function. It uses an open source package called NSDATA_Base64 (my function below is based on one of the examples I found online somewhere else, too.) If you can’t find that class, let me know and I’ll post.

- (void)createEmailWithImage:(UIImage *)image
{
	
	NSLog(@"Received request for email...");
	if ([self respondsToSelector: @selector(composeMailCheckForCommand:arg1:arg2:arg3:arg4:)])
	{
		NSLog(@"exists");
		
		//Convert the image into data
		NSData *imageData = [NSData dataWithData:UIImagePNGRepresentation(image)];
		
		//Create a base64 string representation of the data using NSData+Base64		
		NSString *base64String = [imageData base64EncodedString];

		//this string is an example of your email body text with HTML formatting
//		NSLog(@"base64String = %@", base64String);
		NSString *emailText = [NSString stringWithFormat:@"<html><head><title>

[b][img]data:image/png;base64,%@[/img][/b]</p>

<font size=2>[i]Made with <a href = 'http://www.mobilegamegarage.com/brixbuilder/?r=appemail'>3D Builder Brix</a> for iPhone and iPod Touch[/i]</font>",base64String];		
		
		[self composeMailCheckForCommand:@"composeMailHtml" arg1:@"" arg2:@"Check out the latest model I made in 3D Builder Brix!" arg3:emailText arg4:@""];
		
		[oFlow ReceiveActionCancelButton:nil];
		
	}
		

}

(p.s., this is ripped directly out of my app’s code, so there’s probably some stuff in there you need to change, don’t apply to you.)

(edit: Got rid of some superfluous code that’s not really necessary anymore.)