Question about gmail

I am using IMAP to read emails and I want to reply to those emails read with SMTP, but how do we reply to emails instead of creating new emails?

Is there any way of doing this? o.o