Mailx is adding a random "!" in the middle of my mail

I made a script that sends an email with one long line, line looks like this.

UY453;HJ345;BM342;JH526;HJ245;HJ234;NM235;........JK453;SD245;

The mail has about 200 of those IDs in one line, each ID is separtated by ";".

The problem is that there is a random exclemation mark and it starts a new line in the middle of the of the body of the mail. like this below

........DF3434;HJ435;HF345;KG3!
32;SD
343;SF243;SD564;HJ436..........

I am not sure on whats happening or on how to fix it

Show the code which you call mailx with please.

print "$nidlist" | mailx -s "Automated checkout not running" examplemeail@example.com

It might be something the mailer does to really long lines. Try sending it as an attachment.