您的位置:首页 > 编程语言 > VB

[VB.NET]找人实现以下功能,有报酬

2008-12-28 17:24 309 查看



找人实现以下功能,有报酬
功能介绍:
邮箱yahoo, 不打开IE页面实现打开其中的信的内容,里面有一个激活链接,访问这个链接 激活(不打开IE,使用相关技术在程序里实现整个过程)。
__________________________________________________________________________
忘记了联系QQ:459997126
__________________________________________________________________________
用foxmail不就好了
__________________________________________________________________________
感觉你不如自己开发个程序,把这信收下来,然后自动分析信的内容,把地址提取出来,再使用webclient技术访问该地址

没难度。
__________________________________________________________________________
不是使用什么foxmail的事。是在程序里实现这一功能。

就算是foxmail,好像也并不能够打开yahoo邮箱,因为它不支持pop3。要打开还需要到yahoo网站上去设置,比较麻烦。
__________________________________________________________________________
1.YAHOO收费服务提供POP3和SMTP支持

2.我为什么一定要用YAHOO的邮箱?
__________________________________________________________________________ http://www.cnblogs.com/Roping/archive/2007/04/07/703706.html __________________________________________________________________________
Windows Live Mail就可以了啦
__________________________________________________________________________
msdn里面有例子

void Page_Load()
{
if (!IsPostBack)
{
txtTo.Text= john@contoso.com ;
txtFrom.Text= marsha@contoso.com ;
txtCc.Text= fred@contoso.com ;
txtBcc.Text= wilma@contoso.com ;
txtSubject.Text= Hello ;
txtBody.Text= This is a test message. ;
txtAttach.Text=@ C:/Documents and Settings/All Users/Documents/My Pictures/Sample Pictures/Sunset.jpg,
+ @ C:/Documents and Settings/All Users/Documents/My Pictures/Sample Pictures/Winter.jpg ;
txtBodyEncoding.Text = Encoding.ASCII.EncodingName;
txtBodyFormat.Text= HTML ;
txtPriority.Text= Normal ;
txtUrlContentBase.Text= http://www.contoso.com/images ;
txtUrlContentLocation.Text= http://www.contoso.com/images ;
// Name of relay mail server in your domain.
txtMailServer.Text= smarthost ;
}
}

void btnSubmit_Click(Object sender, EventArgs e)
{
string sTo, sFrom, sSubject, sBody;
string sAttach, sCc, sBcc, sBodyEncoding;
string sBodyFormat, sMailServer, sPriority;
string sUrlContentBase, sUrlContentLocation;
int iLoop1;

sTo = txtTo.Text.Trim();
sFrom = txtFrom.Text.Trim();
sSubject = txtSubject.Text.Trim();
sBody = txtBody.Text.Trim();
sAttach = txtAttach.Text.Trim();
sCc = txtCc.Text.Trim();
sBcc = txtBcc.Text.Trim();
sBodyFormat = txtBodyFormat.Text.Trim();
sBodyEncoding = txtBodyEncoding.Text.Trim();
sPriority = txtPriority.Text.Trim();
sUrlContentBase = txtUrlContentBase.Text.Trim();
sUrlContentLocation = txtUrlContentLocation.Text.Trim();
sMailServer = txtMailServer.Text.Trim();

MailMessage MyMail = new MailMessage();
MyMail.From = sFrom;
MyMail.To = sTo;
MyMail.Subject = sSubject;
MyMail.Body = sBody;
MyMail.Cc = sCc;
MyMail.Bcc = sBcc;
MyMail.UrlContentBase = sUrlContentBase;
MyMail.UrlContentLocation = sUrlContentLocation;

if (txtBodyEncoding.Text == Encoding.UTF7.EncodingName)
MyMail.BodyEncoding = Encoding.UTF7;
else if (txtBodyEncoding.Text == Encoding.UTF8.EncodingName)
MyMail.BodyEncoding = Encoding.UTF8;
else
MyMail.BodyEncoding = Encoding.ASCII;

switch (sBodyFormat.ToUpper())
{
case HTML :
MyMail.BodyFormat = MailFormat.Html;
break;
default:
MyMail.BodyFormat = MailFormat.Text;
break;
}

switch (sPriority.ToUpper())
{
case HIGH :
MyMail.Priority = MailPriority.High;
break;
case LOW :
MyMail.Priority = MailPriority.Low;
break;
default:
MyMail.Priority = MailPriority.Normal;
break;
}

// Build an IList of mail attachments.
if (sAttach != )
{
char[] delim = new char[] { , };
foreach (string sSubstr in sAttach.Split(delim))
{
MailAttachment MyAttachment = new MailAttachment(sSubstr);
MyMail.Attachments.Add(MyAttachment);
}
}

SmtpMail.SmtpServer = sMailServer;
SmtpMail.Send(MyMail);
}
__________________________________________________________________________
学习
__________________________________________________________________________
学习
__________________________________________________________________________
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息