I had the same problem with the SES light coming on, failing a smoke check, and then the car would not start after I filled up with gas. I took it to a station and will get a possible problem result later today. They were thinking possible fuel pump failure. could that be the problem also, or just a system leak, or cracked intake hose near the engine?
Just had the same problem with my 2004 BMW 325i. Service Engine Soon was on as well. Mechanic said everything seemed fine but then found that a hose (intake) was cracked near engine. Replace hose for$15 and $86 for the time. Runs great now. SES light off. Codes off.