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

How to get carbon copy(CC) and Blind Carbon copy (BCC) details #142

Open
puneet18190 opened this issue Jan 23, 2025 · 2 comments
Open

How to get carbon copy(CC) and Blind Carbon copy (BCC) details #142

puneet18190 opened this issue Jan 23, 2025 · 2 comments

Comments

@puneet18190
Copy link

puneet18190 commented Jan 23, 2025

Currently with below code, will get the email:

const path = require("path");
const gmail = require("gmail-tester");
const email = await gmail.check_inbox(
path.resolve(__dirname, "credentials.json"), // Assuming credentials.json is in the current directory.
path.resolve(__dirname, "gmail_token.json"), // Look for gmail_token.json in the current directory (if it doesn't exists, it will be created by the script).
{
subject: "Activate Your Account", // We are looking for 'Activate Your Account' in the subject of the message.
from: "[email protected]", // We are looking for a sender header which is '[email protected]'.
to: "<target-email>", // Which inbox to poll. credentials.json should contain the credentials to it.
wait_time_sec: 10, // Poll interval (in seconds).
max_wait_time_sec: 30, // Maximum poll time (in seconds), after which we'll giveup.
include_body: true
}
);
if (email) {
console.log("Email was found!");
} else {
console.log("Email was not found!");
}

in email, there is NO CC and BCC available(if any). How to get it?

@levz0r
Copy link
Owner

levz0r commented Jan 23, 2025 via email

@puneet18190
Copy link
Author

@levz0r use case is to verify the users email in CC and BCC fields. Would it be possible to check it?

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

2 participants