MylesBolton
MylesBolton
CDCloudflare Developers
Created by maddsua on 12/26/2023 in #general-help
How to setup mailchannels integration on Cloudflare Pages app with a custom domain?
i thin the dns was cached and it was serving the previous record i set
14 replies
CDCloudflare Developers
Created by maddsua on 12/26/2023 in #general-help
How to setup mailchannels integration on Cloudflare Pages app with a custom domain?
no idea why or how but it started working
14 replies
CDCloudflare Developers
Created by maddsua on 12/26/2023 in #general-help
How to setup mailchannels integration on Cloudflare Pages app with a custom domain?
my txt record is
v=mc1 cfid=project.pages.dev cfid=namespace.workers.dev cfid=customdomain.com cfid=sub.customdomain.com
v=mc1 cfid=project.pages.dev cfid=namespace.workers.dev cfid=customdomain.com cfid=sub.customdomain.com
and the error i get back is
POST https://project.pages.dev/api/contact - Ok @ 08/04/2024, 16:08:17
(log) Email send status: 500
(log) Email send response: {
errors: [
'Failed to send email: 550 5.7.1 This sender is not authorized to send from customdomain.com. See https://bit.ly/domain-lockdown. cfid=project.pages.dev'
]
}
POST https://project.pages.dev/api/contact - Ok @ 08/04/2024, 16:08:17
(log) Email send status: 500
(log) Email send response: {
errors: [
'Failed to send email: 550 5.7.1 This sender is not authorized to send from customdomain.com. See https://bit.ly/domain-lockdown. cfid=project.pages.dev'
]
}
14 replies
CDCloudflare Developers
Created by maddsua on 12/26/2023 in #general-help
How to setup mailchannels integration on Cloudflare Pages app with a custom domain?
would there be any other reason this error is getting thrown ?
14 replies
CDCloudflare Developers
Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
maybe he has the function running on the pages plugin
70 replies
CDCloudflare Developers
Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
pages
70 replies
CDCloudflare Developers
Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
so i have a pages setup with a custom domain thsi is probably the problem i have been having
70 replies
CDCloudflare Developers
Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
you sure ? ive been having made problems with this all day
70 replies
CDCloudflare Developers
Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
do you have a add blocker or something on ?
70 replies
CDCloudflare Developers
Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
allso plz give error logs
70 replies
CDCloudflare Developers
Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
not a email
70 replies
CDCloudflare Developers
Created by lckillah on 4/8/2024 in #workers-help
Mailchannels Issues
domain should just be bbybloom.co
70 replies
CDCloudflare Developers
Created by MylesBolton on 4/6/2024 in #pages-help
NextJS + Pages plugin error
found this so im going to use this instead of the plugins https://github.com/Le0Developer/cloudflare-discord-mailing/blob/master/src/send.ts
6 replies
CDCloudflare Developers
Created by MylesBolton on 4/6/2024 in #pages-help
NextJS + Pages plugin error
maybe i messed up my code somewhere
6 replies
CDCloudflare Developers
Created by MylesBolton on 4/6/2024 in #pages-help
NextJS + Pages plugin error
ok ye i chaged to the server side validation now the mailchalles plugin is throwing this error
Failed to send email: async (workerContext) => {
let { request } = workerContext;
const { env, next } = workerContext;
let { data } = workerContext;
const url = new URL(request.url);
const relativePathname = `/${url.pathname.replace(workerContext.functionPath, "") || ""}`.replace(/^\/\//, "/");
const handlerIterator = executeRequest2(request, relativePathname);
const pluginNext = async (input, init) => {
if (input !== void 0) {
let url2 = input;
if (typeof input === "string") {
url2 = new URL(input, request.url).toString();
}
request = new Request(url2, init);
}
const result = handlerIterator.next();
if (result.done === false) {
const { handler, params, path } = result.value;
const context = {
request: new Request(request.clone()),
functionPath: workerContext.functionPath + path,
next: pluginNext,
params,
get data() {
return data;
},
set data(value) {
if (typeof value !== "object" || value === null) {
throw new Error("context.data must be an object");
}
data = value;
},
pluginArgs,
env,
waitUntil: workerContext.waitUntil.bind(workerContext),
passThroughOnException: workerContext.passThroughOnException.bind(workerContext)
};
const response = await handler(context);
return cloneResponse2(response);
} else {
return next(request);
}
};
return pluginNext();
}
Failed to send email: async (workerContext) => {
let { request } = workerContext;
const { env, next } = workerContext;
let { data } = workerContext;
const url = new URL(request.url);
const relativePathname = `/${url.pathname.replace(workerContext.functionPath, "") || ""}`.replace(/^\/\//, "/");
const handlerIterator = executeRequest2(request, relativePathname);
const pluginNext = async (input, init) => {
if (input !== void 0) {
let url2 = input;
if (typeof input === "string") {
url2 = new URL(input, request.url).toString();
}
request = new Request(url2, init);
}
const result = handlerIterator.next();
if (result.done === false) {
const { handler, params, path } = result.value;
const context = {
request: new Request(request.clone()),
functionPath: workerContext.functionPath + path,
next: pluginNext,
params,
get data() {
return data;
},
set data(value) {
if (typeof value !== "object" || value === null) {
throw new Error("context.data must be an object");
}
data = value;
},
pluginArgs,
env,
waitUntil: workerContext.waitUntil.bind(workerContext),
passThroughOnException: workerContext.passThroughOnException.bind(workerContext)
};
const response = await handler(context);
return cloneResponse2(response);
} else {
return next(request);
}
};
return pluginNext();
}
6 replies
CDCloudflare Developers
Created by MylesBolton on 4/6/2024 in #pages-help
NextJS + Pages plugin error
but i will probably end up reverting back to a server side validation https://developers.cloudflare.com/turnstile/get-started/server-side-validation/
6 replies
CDCloudflare Developers
Created by MylesBolton on 4/6/2024 in #pages-help
NextJS + Pages plugin error
i dont mean to waste anyone's time with this im just trying to replace node-mailer in my code for my contact form
6 replies