Good answer! After much searching and sifting on Google this works very simply:
`curl "MY_WEBSITE.com/process_emails.php?url={$full_site_url}&domain={$domain}&site={$site_title}&title={$title}&permalink={$permalink}"`;
Enclose entire php command string in backticks —same as typing shell_exec(command string)—
Enclose entire argument to curl command in double quotes so the shell interprets the ENTIRE command.
Enclose variables in
{} instead of concatenating. Simpler and easier to read.
The shell was halting the command after the first
& because that's what the & does in the linux shell.With the entire string interpreted, it works properly and all 5000 emails are processed outside of my Wordpress site through Amazon SES all nice and tidy and properly authorized with DKIM, SPF and encryption.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.