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