我从MailMessage和SMTPdeliverymethod.specifiedpickupdirectory创建了一个eml文件
但是为了拯救它,我需要往返于外地。但事实上我不需要它们。没有它们可以保存mailMeassge吗?或者我尝试创建一个新的eml文件,比如这里。
dim sr as new io.streamreader(Path)
dim sw as new streamwriter(io.Path.combine(io.path.getdirectoryname(Path),"modified.eml")
dim line as string= sr.readline
while line <> nothing
if not line.startswith("X-Sender:") andalso line.startswith("X-Receiver:") Andalso line.startswith("From:") andalso line.startswith("To:") thensw.writeline(line)
line=sr.readline
end while
sw.flush
sw.close但我的新文件还没满。我失去了我的依恋和其他的线条
我如何才能有一个eml文件,而没有往返。当我想打开的时候,我可以填满我自己。或者是关于字段:当用户点击outlook时,可以说使用默认的outlook帐户吗?
发布于 2018-03-13 09:23:29
实际上,它是由源webSite中while循环中的错误引起的。
while not sr.enfofstream
dim line as string=sr.readline
if not ....
end while现在很好。
https://stackoverflow.com/questions/49239450
复制相似问题