c# - SmtpClient Reply-To header not working within Outlook.com -


i have mailbox use clients. mailbox host microsoft outlook.com account. 1 of client have simple html form send question him potential customer. client want able press reply button answer potential customer reply button take adress of mailbox instead of potentiel client.

after search, find out should use replytolist property mailmessage :

using (smtpclient client = new smtpclient(hosttype.getstringvalue())) {     client.credentials = new networkcredential("mymailbox@outlook.com", "password...");     client.port = 587;     client.enablessl = true;     client.deliverymethod = smtpdeliverymethod.network;      mailmessage mail = new mailmessage();     mail.from = new mailaddress(from, displayname);     mail.to.add(new mailaddress(to));      mail.subject = subject;     mail.body = body;     mail.isbodyhtml = true;     //mail.headers.add("reply-to", from);     mail.replytolist.add(new mailaddress(from, from));      client.send(mail); } 

but if use replytolist email reply, doesn't appear in header email once received , use mailbox email replying. try lign mail.headers.add("reply-to", from) , same thing, doesn't work @ all.

i don't know if error came code or else. know similar questions here none of them me find problem. me?

thank you

david


edit

to reply comments, here email header :

x-store-info:ru8mzrcu9bi87krfimffogu6zyi7zqxevopz2rk0dfz7097ndfd6ek7w9zo+0didkwojotvfxm39r/hfdwktjhkx37bnomvmx3ikcdv+ti1zouzfojnhdi0uesxiuntuxb9ado5lyzn/mbjx9exooq== authentication-results: hotmail.com; spf=pass (sender ip 65.55.111.151; identity alignment result pass , alignment mode relaxed) smtp.mailfrom=personal@outlook.com; dkim=none (identity alignment result pass , alignment mode relaxed) header.d=outlook.com; x-hmca=pass header.id=personal@outlook.com x-sid-pra: personal@outlook.com x-auth-result: pass x-sid-result: pass x-message-status: n:n x-message-delivery: vj0xlje7dxm9mttspte7yt0wo0q9mdthrd0wo1ndtd0w x-message-info: auezbevr9u6hqkafym906lzrg1/fkcemi6f8hsvqdk/crhywcfcsklrbvc6tf6nt2f3mluwb1ag5a4aktvgsb8qultahvji3wikl+lzmlinuxokuxmsll5sexqmwjdag7yyaqwpjzjqbwce4mdcvlmc58u0wt9fkz0byocapaimziqgbgsetac6sizkoqzcabbdkuuxqixwtucr4kdlum3osrc7jxtwv received: blu004-omc4s12.hotmail.com ([65.55.111.151]) col004-mc4f1.hotmail.com on tls secured channel microsoft smtpsvc(7.5.7601.23008);      fri, 24 apr 2015 18:27:23 -0700 received: blu437-smtp70 ([65.55.111.137]) blu004-omc4s12.hotmail.com on tls secured channel microsoft smtpsvc(7.5.7601.22751);      fri, 24 apr 2015 18:27:22 -0700 x-tmn: [z36r265s9pb3a1but/h40ftfjhu3wcwq] x-originating-email: [personal@outlook.com] message-id: <blu437-smtp70cc72a0993fa1d7935a8286eb0@phx.gbl> return-path: personal@outlook.com mime-version: 1.0 from: hello <personal@outlook.com> to: personal@outlook.com date: fri, 24 apr 2015 21:27:28 -0400 subject: email subject goes here content-type: text/html; charset="us-ascii" content-transfer-encoding: quoted-printable x-originalarrivaltime: 25 apr 2015 01:27:21.0540 (utc) filetime=[fa048840:01d07ef6]  testing replying message 


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -