gas dryer flame goes out, smell gas

We watch the flame ingnite and within 5 seconds it goes out. The dryer is still working, not getting hot though. We smell gas when we open the door. We have replaced the two black coils and have cleaned it out. What part do I need to keep the flame going?