You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
On Thu, Jan 23, 2025 at 7:01 AM puneet18190 ***@***.***> wrote:
Currently with below code, will get the email:
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: "
***@***.***", // We are looking for a sender header which is '
***@***.***'. 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 } );
in email, there is NO CC and BCC available(if any). How to get it?
—
Reply to this email directly, view it on GitHub
<#142>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABC2LIRQHICIGGDVPQHFP7D2MBZTVAVCNFSM6AAAAABVWO44L6VHI2DSMVQWIX3LMV43ASLTON2WKOZSHAYDKOJSGEYTOOA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
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?
The text was updated successfully, but these errors were encountered: