Asterisk fax to email

Hello guys!
Up to now i was using IAX modem with hylafax connected with asterisk for my faxes but for some reason the past few days is not working.
I try to setup the normal asterisk fax but there is no clean manual anywhere.
Can anyone send any helpful link so ill be able to set it up?

I wrote my own fax2mail mail2fax platform. To checking if on my inbox are any mails then i process that and sending fax.

so the best thing to do is to create my own fax2email and email2fax script for having control of it