nygardk / react-share

Social media share buttons and share counts for React
MIT License
2.6k stars 429 forks source link

Can we send Image inside email body using 'EmailShareButton' #532

Open ZabeehUllah opened 3 months ago

ZabeehUllah commented 3 months ago
      <EmailShareButton
        className="social-icons-slide-mail"
        url={certificationPage ? imgLink : URL}
        body={certificationPage ? CERTIFICATE_MAIL_TEXT : articleTitle}
        subject={
          isGenpact()
            ? subject
            : `${subject} ${waterMark}`
        }
        separator={'\r\n\r\n'}
      >
        <SocialIcon onClick={(e) => {
          window.onbeforeunload = () => {
            e.preventDefault();
          };
          if (!certificationPage) {
            socialShareFlurry('article_share_email');
          } else {
            certificationShareFlurry('certification_email_share');
          }
          certificationActivity();
        }}
        >
          <Suspense
            fallback={<div />}
          >
            <SocialMailIcon />
          </Suspense>
        </SocialIcon>
      </EmailShareButton>

This is my code. I want to send image isnide the body. Is that possible? Or can I embed HTML in the body (just like HTML template)?