The only thing I can think of is that $LV_Email_Attachment has not been declared as a varchar(2048). In fact there's no need for it. You can write your function as:
return '<the full string from strSTMPFrom to oMessageSend>';
The only thing I can think of is that $LV_Email_Attachment has not been declared as a varchar(2048). In fact there's no need for it. You can write your function as:
return '<the full string from strSTMPFrom to oMessageSend>';