I would like to create an incoming message(in inbox) by programming. I manage to create one, but it looks like an outgoing message.
1) Is it possible to create an incoming mail ?
2) If yes ,Could you please send me an example ?

Thanks in advance.