Creating applescript for an auto reply email

I have no experience in this but have been online all day trying different scripts and I’m having issues creating an applescript that will work with Mail. We use a web generated form and when I set up a mail rule for an auto reply, it replies to the donotreplay@…email address. The contact email is in the message body, and that’s where I need the reply sent. Can anyone help me create this?