Railsbin – The vulnerable pastebin service!

User:

Title: RFC

Content:

<?php
class foo
{
	private function sendMail(GDO_User $user, string $email, string $lang, KC_Coupon $coupon)
	{
		$mail = Mail::botMail();
		$starsPerEuro = Module_KassiererCard::instance()->cfgStarsPerEuro();
		$mail->setSubject(tiso($lang, 'mailsubj_kk_invite', [sitename(), $coupon->renderType()]));
		$mail->setBody(tiso($lang, 'mailbody_kk_invite', [
			$user->renderUserName(),
			$coupon->renderType(),
			$starsPerEuro,
			$coupon->getStars(),
			GDT_Link::anchor($coupon->urlEnter()),
		]));
		$mail->setReceiver($email);
		$mail->send();
	}
}

Edit | Back