> ## Documentation Index
> Fetch the complete documentation index at: https://help.hoopai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Dedicated email domain

> Set up a dedicated email sending domain to improve deliverability and keep your marketing emails separate from personal communications.

export const CourseTracker = ({courseId, lessonId, videoId}) => {
  const [progress, setProgress] = useState({});
  const [expanded, setExpanded] = useState(false);
  useEffect(() => {
    setProgress(loadProgress());
    document.body.setAttribute("data-academy", "true");
    return () => document.body.removeAttribute("data-academy");
  }, []);
  const course = COURSES[courseId];
  if (!course) return null;
  const lessons = course.lessons;
  const currentIndex = lessons.findIndex(l => l.id === lessonId);
  const completedCount = lessons.filter(l => !!progress[courseId + "/" + l.id]).length;
  const percent = lessons.length > 0 ? Math.round(completedCount / lessons.length * 100) : 0;
  const isCurrentDone = !!progress[courseId + "/" + lessonId];
  const prev = currentIndex > 0 ? lessons[currentIndex - 1] : null;
  const next = currentIndex < lessons.length - 1 ? lessons[currentIndex + 1] : null;
  const totalDuration = formatTotalDuration(lessons);
  const handleToggle = () => {
    const key = courseId + "/" + lessonId;
    const updated = {
      ...progress
    };
    if (updated[key]) {
      delete updated[key];
    } else {
      updated[key] = Date.now();
    }
    setProgress(updated);
    persistProgress(updated);
  };
  const lessonPath = lesson => "/academy/" + course.dir + "/" + lesson.id;
  const videoEmbed = videoId ? <div style={{
    position: "relative",
    width: "100%",
    paddingBottom: "56.25%",
    borderRadius: "var(--ds-radius-lg)",
    overflow: "hidden",
    marginBottom: "24px",
    background: "#000"
  }}>
      <iframe src={"https://www.youtube-nocookie.com/embed/" + videoId + "?rel=0"} title="Lesson video" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen style={{
    position: "absolute",
    top: 0,
    left: 0,
    width: "100%",
    height: "100%",
    border: "none"
  }} />
    </div> : null;
  const lessonList = lessons.map(lesson => {
    const isActive = lesson.id === lessonId;
    const isDone = !!progress[courseId + "/" + lesson.id];
    const itemStyle = {
      display: "flex",
      alignItems: "center",
      gap: "8px",
      padding: "10px 16px",
      borderTop: "1px solid var(--academy-border-subtle, #f3f4f6)",
      background: isActive ? "var(--academy-active-bg, #f9fafb)" : "transparent",
      textDecoration: "none",
      cursor: isActive ? "default" : "pointer",
      color: "inherit",
      transition: "background 0.15s"
    };
    const titleStyle = {
      flex: 1,
      fontSize: "13px",
      fontWeight: isActive ? 600 : 400,
      color: isActive ? "var(--academy-text, #111827)" : "var(--academy-text-secondary, #6b7280)",
      overflow: "hidden",
      textOverflow: "ellipsis",
      whiteSpace: "nowrap",
      lineHeight: "1.4"
    };
    const durationStyle = {
      fontSize: "12px",
      color: "var(--academy-text-muted, #9ca3af)",
      whiteSpace: "nowrap"
    };
    const inner = <>
        {isDone ? <CheckCircle /> : <VideoIcon />}
        <span style={titleStyle}>{lesson.title}</span>
        <span style={durationStyle}>{lesson.duration}</span>
      </>;
    if (isActive) {
      return <div key={lesson.id} style={itemStyle}>
          {inner}
        </div>;
    }
    return <a key={lesson.id} href={lessonPath(lesson)} style={itemStyle}>
        {inner}
      </a>;
  });
  return <div className="not-prose" id="academy-course-tracker">
      {videoEmbed}
      <div className="academy-tracker" style={{
    fontFamily: "Inter, -apple-system, BlinkMacSystemFont, sans-serif",
    borderRadius: "var(--ds-radius-lg)",
    border: "1px solid var(--academy-border, #e5e7eb)",
    background: "var(--academy-bg, #ffffff)",
    overflow: "hidden",
    marginBottom: "24px"
  }}>
        {}
        <div style={{
    padding: "16px 16px 0"
  }}>
          <h3 style={{
    margin: 0,
    fontSize: "16px",
    fontWeight: 600,
    lineHeight: "1.4",
    color: "var(--academy-text, #111827)"
  }}>
            {course.title}
          </h3>
          <div style={{
    display: "flex",
    gap: "12px",
    marginTop: "8px"
  }}>
            <span style={{
    display: "flex",
    alignItems: "center",
    gap: "5px",
    fontSize: "12px",
    color: "var(--academy-text-secondary, #6b7280)",
    padding: "3px 8px 3px 6px",
    borderRadius: "var(--ds-radius-sm)",
    border: "1px solid var(--academy-border, #e5e7eb)"
  }}>
              <BookIcon /> {lessons.length} lessons
            </span>
            <span style={{
    display: "flex",
    alignItems: "center",
    gap: "5px",
    fontSize: "12px",
    color: "var(--academy-text-secondary, #6b7280)",
    padding: "3px 8px 3px 6px",
    borderRadius: "var(--ds-radius-sm)",
    border: "1px solid var(--academy-border, #e5e7eb)"
  }}>
              <ClockIcon /> Approx. {totalDuration}
            </span>
          </div>
        </div>

        {}
        <div style={{
    padding: "14px 16px 16px"
  }}>
          <div style={{
    display: "flex",
    justifyContent: "space-between",
    fontSize: "12px",
    color: "var(--academy-text-secondary, #6b7280)"
  }}>
            <span>Your progress</span>
            <span style={{
    fontWeight: 500,
    color: "var(--academy-text, #111827)"
  }}>
              {percent}%
            </span>
          </div>
          <div style={{
    height: "6px",
    borderRadius: "var(--ds-radius-full)",
    background: "var(--academy-track, #f3f4f6)",
    marginTop: "8px",
    overflow: "hidden"
  }}>
            <div style={{
    height: "100%",
    borderRadius: "var(--ds-radius-full)",
    background: "var(--academy-progress, #3b82f6)",
    transition: "width 0.5s cubic-bezier(0.4, 0, 0.2, 1)",
    width: percent + "%"
  }} />
          </div>
        </div>

        {}
        <div className="academy-lessons-desktop">{lessonList}</div>

        {}
        <div className="academy-lessons-mobile">
          <button onClick={() => setExpanded(!expanded)} aria-expanded={expanded} style={{
    display: "flex",
    alignItems: "center",
    justifyContent: "space-between",
    padding: "12px 16px",
    cursor: "pointer",
    borderTop: "1px solid var(--academy-border-subtle, #f3f4f6)",
    background: "transparent",
    border: "none",
    borderTopStyle: "solid",
    borderTopWidth: "1px",
    borderTopColor: "var(--academy-border-subtle, #f3f4f6)",
    width: "100%",
    textAlign: "left",
    color: "var(--academy-text-secondary, #6b7280)",
    fontSize: "13px",
    fontWeight: 500,
    fontFamily: "inherit"
  }}>
            <span>
              {expanded ? "Hide lessons" : "Show all " + lessons.length + " lessons"}
            </span>
            <ChevronDown open={expanded} />
          </button>
          {expanded && lessonList}
        </div>

        {}
        <div style={{
    display: "flex",
    alignItems: "center",
    justifyContent: "space-between",
    borderTop: "1px solid var(--academy-border, #e5e7eb)",
    padding: "10px 16px"
  }}>
          {prev ? <a href={lessonPath(prev)} style={{
    fontSize: "13px",
    color: "var(--academy-text-secondary, #6b7280)",
    textDecoration: "none",
    display: "flex",
    alignItems: "center",
    gap: "4px"
  }}>
              ‹ Previous
            </a> : <div />}
          <button onClick={handleToggle} style={{
    fontSize: "13px",
    fontWeight: 500,
    cursor: "pointer",
    padding: "6px 14px",
    borderRadius: "var(--ds-radius-md)",
    border: isCurrentDone ? "1px solid var(--academy-border, #e5e7eb)" : "none",
    background: isCurrentDone ? "var(--academy-bg, #ffffff)" : "var(--academy-btn-bg, #111827)",
    color: isCurrentDone ? "var(--academy-complete, #10b981)" : "var(--academy-btn-text, #ffffff)",
    display: "flex",
    alignItems: "center",
    gap: "6px",
    transition: "all 0.2s",
    lineHeight: "1.4",
    fontFamily: "inherit"
  }}>
            {isCurrentDone ? <>
                <CheckCircle /> Completed
              </> : "Mark as completed"}
          </button>
          {next ? <a href={lessonPath(next)} style={{
    fontSize: "13px",
    color: "var(--academy-text-secondary, #6b7280)",
    textDecoration: "none",
    display: "flex",
    alignItems: "center",
    gap: "4px"
  }}>
              Next ›
            </a> : <div />}
        </div>
      </div>
    </div>;
};

<CourseTracker courseId="email-messaging" lessonId="dedicated-email-domain" />

Setting up a dedicated email domain is critical for email marketing success. A dedicated subdomain separates your marketing and automation traffic from your regular email — protecting your main domain's reputation and ensuring campaigns actually reach inboxes.

<Frame caption="The Dedicated Email Domain lesson in the Email Messaging section">
  <img src="https://mintcdn.com/hoopai-84ec0cdc/gyU98wGhFXcTdqFf/images/academy-onboarding-dedicated-email-domain.png?fit=max&auto=format&n=gyU98wGhFXcTdqFf&q=85&s=86c5278f7c3ea103a8a1d4123ba136e5" alt="Dedicated email domain for email messaging" width="1536" height="826" data-path="images/academy-onboarding-dedicated-email-domain.png" />
</Frame>

## Why this matters

If you send marketing emails from your main business domain and one campaign generates high spam reports or bounces, your entire domain reputation can suffer — affecting even regular business email delivery. A dedicated sending subdomain isolates this risk completely.

<Warning>
  You must add a DMARC record to your DNS settings. Copy and paste the following exactly, with no leading or trailing spaces:

  * **Record Type:** TXT
  * **Host/Name:** `_DMARC`
  * **Content/Points to field:** `v=DMARC1; p=none;`
</Warning>

## How to set up your dedicated email domain

<Steps>
  <Step title="Navigate to Email Services">
    Go to **Settings** > **Email Services** (or **Email** > **Dedicated Sending Domain** depending on your account view).

    <Frame caption="Accessing Email Services in the HoopAI Platform settings">
      <img src="https://mintcdn.com/hoopai-84ec0cdc/gyU98wGhFXcTdqFf/images/academy-onboarding-dedicated-email-domain.png?fit=max&auto=format&n=gyU98wGhFXcTdqFf&q=85&s=86c5278f7c3ea103a8a1d4123ba136e5" alt="Email services navigation" width="1536" height="826" data-path="images/academy-onboarding-dedicated-email-domain.png" />
    </Frame>
  </Step>

  <Step title="Choose a subdomain">
    Decide on a subdomain for your marketing emails. Common examples:

    * `mail.yourbusiness.com`
    * `send.yourbusiness.com`
    * `marketing.yourbusiness.com`

    Using a subdomain rather than your root domain protects your main domain's reputation if a campaign has deliverability issues.
  </Step>

  <Step title="Add the domain in the platform">
    Enter your chosen subdomain and click **Add Domain**. The platform will generate the DNS records you need to add at your registrar.

    <Frame caption="Adding your subdomain to the HoopAI email system">
      <img src="https://mintcdn.com/hoopai-84ec0cdc/gyU98wGhFXcTdqFf/images/academy-email-cc-bcc.png?fit=max&auto=format&n=gyU98wGhFXcTdqFf&q=85&s=8745ae04a64cea6b9408446867b607a0" alt="Add email domain screen" width="1536" height="826" data-path="images/academy-email-cc-bcc.png" />
    </Frame>
  </Step>

  <Step title="Add DNS records at your registrar">
    Log in to your domain registrar (GoDaddy, Namecheap, Cloudflare, etc.) and add each DNS record the platform provides — typically CNAME and TXT records for DKIM verification.

    Add each record exactly as shown. Spacing and punctuation matter.
  </Step>

  <Step title="Add your DMARC record">
    In your registrar's DNS management panel, add a new TXT record:

    * **Host/Name:** `_DMARC`
    * **Value:** `v=DMARC1; p=none;`

    <Frame caption="Adding the required DMARC TXT record at your domain registrar">
      <img src="https://mintcdn.com/hoopai-84ec0cdc/gyU98wGhFXcTdqFf/images/academy-onboarding-connect-integrations.png?fit=max&auto=format&n=gyU98wGhFXcTdqFf&q=85&s=438d94999ada2e8819af2eb0ee159b50" alt="DMARC record setup" width="1536" height="826" data-path="images/academy-onboarding-connect-integrations.png" />
    </Frame>
  </Step>

  <Step title="Verify the domain">
    Return to the HoopAI Platform and click **Verify**. DNS propagation can take up to 24–48 hours. Once verified, your domain status shows as active and ready to use for email sending.

    <Tip>
      If verification fails immediately, wait a few hours before trying again. DNS propagation times vary by registrar and region.
    </Tip>
  </Step>
</Steps>

## Key points

<AccordionGroup>
  <Accordion title="Why use a dedicated domain instead of your main domain">
    If a marketing campaign generates high spam complaints or bounces, your sending subdomain takes the hit — not your main domain. Your regular business email remains unaffected.
  </Accordion>

  <Accordion title="What DNS records are required">
    Typically: DKIM CNAME records (generated by the platform), an SPF TXT record, and a DMARC TXT record. The platform generates your DKIM values automatically — you must manually add the DMARC record.
  </Accordion>

  <Accordion title="How long DNS propagation takes">
    DNS changes propagate globally within a few hours to 48 hours. If verification fails immediately, wait and check again before contacting support.
  </Accordion>
</AccordionGroup>

## Key benefits

<AccordionGroup>
  <Accordion title="Enhanced deliverability">
    Dedicated domain emails land in inboxes more reliably than emails sent from shared or main domains.
  </Accordion>

  <Accordion title="Brand professionalism">
    A custom sending domain reinforces your brand identity in every email you send.
  </Accordion>

  <Accordion title="Simplified management">
    Track marketing email performance separately from your regular business email.
  </Accordion>

  <Accordion title="Increased trust">
    Properly authenticated emails signal to email providers that your messages are legitimate.
  </Accordion>

  <Accordion title="Better campaign results">
    Higher deliverability means more opens, clicks, and conversions from every campaign.
  </Accordion>
</AccordionGroup>
