MailMessage sent string as body without newline in outlook

前端 未结 10 843
挽巷
挽巷 2020-12-11 15:44

HI, I am trying to send a simple notification using system.net.mail.mailmessage. I just pass the string as the message body. But problem is even though multi-line message be

10条回答
  •  萌比男神i
    2020-12-11 16:13

    Have your string like below

    "Your string.\n"
    

    And:

    ms.IsBodyHtml = false;
    

    But you may get it in your Junk folder

提交回复
热议问题