function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Andrew TelfordAndrew Telford 

dynamic reply to field in visualforce email template

I ma trying to get the reply-to field in a visualforce email. My hope is to be able to call a class function which I have that will check the value I pass to it and add the email address accordingly.
<messaging:emailTemplate subject="Product Upgrade Boardroom Session"
    replyTo="DYNAMCIALLY CHANGE VIA CALL TO CLASS FUNCTION (ci_class.emailFromAddress(passedValue)">
PUBLIC STRING emailFromAddress ( STRING strSender )
		STRING strEMail = NULL;
		//--	Set the mapping for the Sender / Email
		//--	--------------------------------------------------------------------------------------------------------
		MAP<STRING, STRING> senderMap = NEW MAP<STRING, STRING>();	//--	Stores Key Value Pairs
		senderMap.put('Sales NSW/ACT', '');
		senderMap.put('Sales QLD', '');
        senderMap.put('Sales VIC/TAS', '');
        senderMap.put('Sales WA/SA/NT', '');
		senderMap.put('National', '');

		IF( senderMap.containsKey( strSender ) )
			strEmail = senderMap.get( strSender );
			RETURN strEmail;
		{	RETURN strEMail;	}

Was thinking of calling a component but it doesn't allow me to call that inside the message tags.

Any thoughts??