The Shulchan Aruch · Orach Chayim
אורח חיים רכ״הOrach Chayim 225
Siman 225 of 697 in Orach Chayim — 10 se'ifim
הלכות שאר ברכותLaws of Other Blessings· siman 225
Se’if 1א׳
הָרוֹאֶה אֶת חֲבֵרוֹ לְאַחַר שְׁלֹשִׁים יוֹם, אוֹמֵר: שֶׁהֶחֱיָנוּ, וְאַחַר י"ב חֹדֶשׁ מְבָרֵךְ: מְחַיֵּה מֵתִים, וְהוּא שֶׁחָבִיב עָלָיו הַרְבֵּה וְשָׂמֵחַ בִּרְאִיָּתוֹ.
One who sees his friend after thirty days, says shehecheyanu (who has kept us alive....) and after twelve months, one blesses m'chayeh meytim (who gives life to the dead) and this is for one who is very dear to him and is happy when seeing him.
Se’if 2ב׳
מִי שֶׁלֹּא רָאָה אֶת חֲבֵרוֹ מֵעוֹלָם, וְשָׁלַח לוֹ כְּתָבִים, אַף עַל פִּי שֶׁהוּא נֶהֱנֶה בִּרְאִיָּתוֹ אֵינוֹ מְבָרֵךְ עַל רְאִיָּתוֹ. הַגָּה: יֵשׁ אוֹמְרִים מִי שֶׁנַּעֲשֶׂה בְּנוֹ בַּר מִצְוָה, יְבָרֵךְ: בָּרוּךְ אַתָּה ה' אֱלֹהֵינוּ מֶלֶךְ הָעוֹלָם שֶׁפְּטָרַנִי מֵעָנְשׁוֹ שֶׁל זֶה (מַהֲרִי"ל בְּשֵׁם מָרְדְּכַי וּבְר"ר פ' תּוֹלְדוֹת), וְטוֹב לְבָרֵךְ בְּלֹא שֵׁם וּמַלְכוּת (דַּעַת עַצְמוֹ).
The one who has not seen his friend for a long time and sends him letters, even though he enjoys seeing him, does not bless upon seeing him. Some say that one who has a son become bar mitzvah should bless "Blessed are You, Lord our God, King of the Universe, who has exempted me from his punishment" (Maharil in the name of Mordechai and Baruch Rosh Parshat Toldot), and it is good to bless without the name and kingdom (De'at Atzmo).
Se’if 3ג׳
הָרוֹאֶה פְּרִי חָדָשׁ מִתְחַדֵּשׁ מִשָּׁנָה לְשָׁנָה, מְבָרֵךְ: שֶׁהֶחֱיָנוּ, וַאֲפִלּוּ רוֹאֶהוּ בְּיַד חֲבֵרוֹ אוֹ עַל הָאִילָן, וְנָהֲגוּ שֶׁלֹּא לְבָרֵךְ עַד שְׁעַת אֲכִילָה. הַגָּה: וּמִי שֶׁבֵּרַךְ בִּשְׁעַת רְאִיָּה, לֹא הִפְסִיד (טוּר); וְאֵין לְבָרֵךְ עַד שֶׁנִּגְמַר תַּשְׁלוּם גִּדּוּל הַפְּרִי (תְּשׁוּבַת רַשְׁבָּ"א סי' רַ"ן וְכָל בּוֹ); וְאִם לֹא בֵּרַךְ בִּרְאִיָּה רִאשׁוֹנָה, יָכוֹל לְבָרֵךְ בִּרְאִיָּה שְׁנִיָּה (אָגוּר).
One who sees a new fruit in its season year by year blesses "Shehecheyanu," even if he sees it in the hand of his friend or on the tree. It is customary not to bless until the time of eating. Note: One who blessed upon seeing did not lose (Tur), and one should not bless until the payment for the growth of the fruit is completed (Responsa of Rashba, siman resh nun, and all of it), and if one did not bless upon the first sight, he can bless upon the second sight (Agur).
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0