I finally got everything working. It's now sending via gmail. (my own mistake why it wasn't working)
But now I've got a small problem.
I used a property field to make it possible to fill in the mailFrom. It's working fine, but when a person contacts me and checks the checkbox to receive a copy I get two mails. (the original sender gets two mails, the person that contacts just get's one). I get one mail that is correct, I can answer it and the answer goes to the person that contacted me. But I also get another mail, which is a copy of the mail send to the person that contacted me.
This didn't happen when I had the mailFrom coded inside of the macro.
I'm quite new to umbraco, so I'm not sure where to correct it. Or maybe it's just a bug caused by gmail. But the strange thing is that I don't get that copy when I code the mailFrom in the macro. Than I only get that copy inside of my send box, and that's the correct place.
Hope you understand what the problem is. If you don't I'll try and explain it even better maybe with some screenshots, or just in dutch hehe.
Getting two mails when sending via gmail
is working on a reply...