This below is my code, when it gets to the end of the function, the debugger throws an EXC_BAD_ACCESS error and when I check the website's logs, the url was never visited. If anyone could help me fix this issue, it would be greatly appreciated:
-(IBAction)submitEmail:(id)sender
{
NSString *urlStringRaw = [[NSString alloc] init];
urlStringRaw = [NSString stringWithFormat:@"http://vedev.org/AnonMail/sendEmail.php?from=%@&to=%@&subject=%@&body=%@", from.text, to.text, subject.text, bodyContent.text];
NSString *urlString = [urlStringRaw stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
[urlStringRaw release];
NSURL * url = [NSURL URLWithString:urlString];
[urlString release];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[url release];
NSURLConnection *connection = [NSURLConnection connectionWithRequest:requestObj delegate:nil];
[connection release];
[requestObj release];
}