Send mail before paypal redirect

till no one has revcieved email if customer payed by paypal. mail is no send before paypal redirect.

2do: better would be to outsource mail function and call after success paying