I’m getting the following error when trying to use sendmail:
NSRangeException: *** -[NSCFString substringToIndex:]: Range or index out of bounds
Here’s the code:
sendMail (to:"email@example.com",subject:"Daily Script Run:"&&today,body:"Daily execution on"&&currOS&&"was successful.")
I’ve been using email in the past with little trouble, and now when I turn it back on, I’m getting this.
Let me know what other information you might need. I took a look around the forum and saw a similar post with no answer