Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用System.Net.Mail请求交货收据并读取收据_.net_Smtpclient_System.net.mail - Fatal编程技术网

使用System.Net.Mail请求交货收据并读取收据

使用System.Net.Mail请求交货收据并读取收据,.net,smtpclient,system.net.mail,.net,Smtpclient,System.net.mail,我们在应用程序中使用System.Net.Mail命名空间向用户发送电子邮件。 在使用上述名称空间(也不使用任何第三方库)发送电子邮件时,是否有方法可以请求送达回执和读取回执选项 MailMessage SendMail = new MailMessage(); //other code to configure to, from, subject, body etc... //for read receipt SendMail.Headers.Add ("Dispo

我们在应用程序中使用System.Net.Mail命名空间向用户发送电子邮件。 在使用上述名称空间(也不使用任何第三方库)发送电子邮件时,是否有方法可以请求送达回执和读取回执选项

  MailMessage SendMail = new MailMessage();
        //other code to configure to, from, subject, body etc...
  //for read receipt
  SendMail.Headers.Add ("Disposition-Notification-To", "email@gmail.com"); 
  //for delivery receipt
  SendMail.DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess