Mail was going out just not coming in through the cron job.
For some reason even though mcrypt was installed, it was not registered in PHP. I have no idea, since it was not registered, why it worked in the website and not in mail fetch class.
All is good now.
Hi,
this is very easier if you can use wamp server, i have completely installed osticket with wamp server and it's fetching mail well , but still i couldn't find the correct way to configure sending mail (smtp).
if you use wamp server these are the correct way to installed it
1 first installed the wamp server
2 download the osticket , extract it to www folder which is in the wamp installation
3 go to the wamp control panel and and run the all the servicess
4 to activate short open tag (php -- > php setting -- > tick short open tag
5 to activate php_imap ( php --- > php extention -- > php_imap
6 then run the application
7 go to setting --- > email and set up new email