資源簡介
外國人寫的email 發(fā)送程序
Usually, when we send an email, we need to login to a known email service provider's SMTP server and deliver the email
using that server. If we add the send email functionality to a software, the user needs to configure an SMTP server address,
the username, and the password. Why not send an email to the receiver's SMTP server directly? Because the receiver's server
doesn't need authorization, otherwise you can only receive email when the sender knows your account password. I think
many programmers have been asking this question, so I explored the issue.
代碼片段和文件信息
using?System;
using?System.Windows.Forms;
namespace?QiHe.CodeLib
{
????///?
????///?Represents?the?file?type.
????///?
????public?enum?FileType?
????{
????????///?
????????///?Txt?file
????????///?
????????Txt
????????///?
????????///?Rtf?file
????????///?
????????Rtf
????????///?
????????///?Html?file
????????///?
????????Html
????????///?
????????///?xml?file
????????///?
????????xml
????????///?
????????///?PDF?file
????????///?
????????PDF
????????///?
????????///?Bin?file
????????///?
????????Bin
????????///?
????????///?Zip?file
????????///?
????????Zip
????????///?
????????///?I
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????36864??2008-06-05?15:24??bin\Release\EmailSender.exe
?????文件????????9116??2008-05-16?15:46??CodeLib\FileSelector.cs
?????文件????????4577??2008-06-04?13:24??CodeLib\Net\Dns\DnsMessage.cs
?????文件???????14351??2008-06-04?19:33??CodeLib\Net\Dns\DnsMessageCoder.cs
?????文件????????2802??2008-06-04?15:53??CodeLib\Net\Dns\DnsQuery.cs
?????文件????????1170??2008-06-04?15:08??CodeLib\Net\Dns\DnsResource.cs
?????文件?????????511??2008-06-04?13:39??CodeLib\Net\Dns\MailExchange.cs
?????文件???????10225??2008-06-05?13:53??CodeLib\Net\DomainNameUtil.cs
?????文件????????2815??2008-06-04?19:13??CodeLib\Net\EmailSender.cs
?????文件????????1793??2008-06-05?15:24??MiscTools\EmailSender\MainForm.cs
?????文件???????11463??2008-06-05?15:24??MiscTools\EmailSender\MainForm.Designer.cs
?????文件?????????495??2008-06-04?17:53??MiscTools\EmailSender\Program.cs
?????文件????????5814??2008-06-05?15:24??MiscTools\EmailSender\MainForm.resx
?????文件????????6218??2006-11-07?13:25??UI\Controls\FileBrower.cs
?????文件????????5814??2006-11-07?11:58??UI\Controls\FileBrower.resx
?????文件????????3503??2008-06-04?19:06??EmailSender.csproj
?????文件?????????910??2008-06-04?17:51??EmailSender.sln
評(píng)論
共有 條評(píng)論