arduino_new:
It's not clear what you are trying to do or what your problem was. Please describe agian.
Thanks for looking for me.
Basically I have several strings that have been defined by #define to avoid memory usage.
I do not know if it's the best way, but it's how it's implemented.
#define EmailReboot "System was Reboted {DateTime}"
I have a function that sends emails, I'm using Lib Gsender.
boolean SendEmail(String Subject, String EmailTo, String Mensage)
What I was trying to do was this, but it does not work:
SendEmail(EmailSubjectReboot, System.MailTo, String(EmailReboot).replace("{DateTime}", "XX") );