2009-03-26 4 views
2

私のyahoomail Idからのメールを送っています。VB.NETまたはC#.NETコードのyahooメールIDからのメールの送信方法。親切な助けが必要です..アドバンスありがとう。yahooメールからのメールの送信方法VB.NETまたはC#.NETコード

一般的なアイデアは、その後、「POP、SMTPおよびNNTPサーバー、あなたのYahooのアカウントにログインし、 "アカウント情報" をクリックして、YahooのSMTPの詳細についてはhere

を見つけることができます

答えて

2

基本的なhtml電子メールメッセージの例を以下に示します。

http://help.yahoo.com/l/us/yahoo/mail/original/mailplus/pop/pop-14.html

' VB 

    Dim m As MailMessage = New MailMessage 
    m.From = New MailAddress("[email protected]", "Your Name") 
    m.To.Add(New MailAddress("[email protected]", "Recipient Name")) 
    m.Subject = "Hello" 
    ' Specify an HTML message body 
    m.Body = "<html><body><h1>My Message</h1><br>Put the body here.</body></html>" 
    m.IsBodyHtml = True 
    ' Send the message 
    Dim client As SmtpClient = New SmtpClient("smtp.mail.yahoo.com") 
    client.Send(m) 






    // C# 

    MailMessage m = new MailMessage(); 
    m.From = new MailAddress("[email protected]", "Your Name"); 
    m.To.Add(new MailAddress("[email protected]", "Recipient Name")); 
    m.Subject = "Hello"; 
    // Specify an HTML message body 
    m.Body = "<html><body><h1>My Message</h1><br>Put the body here.</body></html>"; 
    m.IsBodyHtml = true; 
    // Send the message 
    SmtpClient client = new SmtpClient("smtp.mail.yahoo.com"); 
    client.Send(m); 
0

Sivakumar.P設定 "

関連する問題