المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Code for sending Mail (on behalf of)



C# Programming
04-13-2009, 03:41 PM
Hi all,

I am facing problem with mail sending code in c#.Actually my requirement is like mail will be send to some one from me on behalf of one comapny , this will look like



From: Support@testcomapny.com [mailto:Support@testcomapny.com] On Behalf Of test
Sent: Thursday, April 09, 2009 2:19 PM
To: test@test.com
Subject: Testing



I am using message.Sender = new MailAddress("Support@testcompany.com"); this line for doing this, its working for hotmail and our comapny mails but for gmail and yahoo its not working.

can anybody suggest the solution
plsss its very urgent

Thnaks in advance