Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ZabeehUllah opened this issue Mar 26, 2024 · 0 comments
Open

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

ZabeehUllah opened this issue Mar 26, 2024 · 0 comments

Comments

@ZabeehUllah
Copy link

      <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)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant