An article in...

Hi,

Are these correct?

I wrote an article in Daily Mail.

This article appeared in Daily Mail.

Thanks

I wrote an article for the Daily Mail.

This article appeared in the Daily Mail.