If the To[x]: input is blank it shouldn't ask again.
Is this on the console or part of a script?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm using windows powershell and it is asking the To: over and over again when I try to send an email on it. How do I stop this?
If the To[x]: input is blank it shouldn't ask again.
Is this on the console or part of a script?
Have you provided any recipients at all? IOW, have you used either the -CC or -BCC parameters?
Also, a message without a "To:" header in the RFC822 message headers would look pretty suspicious to spam filters.
If you don't want to disclose the intended recipients in the RFC822 headers then it's a good idea to add the -TO parameter with an address like "******@your-domain.tld" and assign the ******@your-domain.tld to a distribution group with no members -- that will effectively discard any replies, NDRs, etc. sent in response to the email.