Moved sendFile method added retry(still in works) also add pdf template change