fix cid
This commit is contained in:
parent
f904500e2d
commit
f2ee374e32
2 changed files with 7 additions and 10 deletions
|
|
@ -11,6 +11,7 @@ import {
|
|||
Text,
|
||||
} from "@react-email/components";
|
||||
import type { JSX } from "react";
|
||||
import { env } from "~/env";
|
||||
|
||||
const Base = ({
|
||||
children,
|
||||
|
|
@ -21,6 +22,11 @@ const Base = ({
|
|||
preview: string;
|
||||
noreply?: boolean;
|
||||
}) => {
|
||||
console.log("BASE_URL:", env.BASE_URL);
|
||||
console.log("INTERNAL_BASE_URL:", env.INTERNAL_BASE_URL);
|
||||
console.log("NEXT_PUBLIC_BASE_URL:", env.NEXT_PUBLIC_BASE_URL);
|
||||
console.log("process.env.BASE_URL:", process.env.BASE_URL);
|
||||
const baseUrl = process.env.BASE_URL;
|
||||
return (
|
||||
<Tailwind
|
||||
config={{
|
||||
|
|
@ -45,9 +51,8 @@ const Base = ({
|
|||
alt="Infoalloggi.it"
|
||||
className="mx-auto my-2 scale-80"
|
||||
height={44.25}
|
||||
// src="https://lh3.google.com/u/0/d/1nEurjVWPiz0F8QRLhKcT4ZSujeFRChBs"
|
||||
referrerPolicy="no-referrer"
|
||||
src="cid:logo"
|
||||
src={`${baseUrl}/Infoalloggi.png`}
|
||||
width={230.5}
|
||||
/>
|
||||
|
||||
|
|
|
|||
|
|
@ -62,14 +62,6 @@ const mailer = async ({ to, subject, html }: MailerProps) => {
|
|||
smtpTransport.use("compile", htmlToText());
|
||||
|
||||
const message: Options = {
|
||||
attachments: [
|
||||
{
|
||||
cid: "logo",
|
||||
contentType: "image/png",
|
||||
filename: "Infoalloggi.png",
|
||||
path: "./public/Infoalloggi.png",
|
||||
},
|
||||
],
|
||||
from: `"InfoAlloggi" <${env.ARUBA_USER}>`,
|
||||
html: html,
|
||||
subject: subject,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue