Click here to Skip to main content
15,889,527 members
Home / Discussions / C#
   

C#

 
AnswerRe: Authorization Problem Pin
led mike19-Jan-07 7:20
led mike19-Jan-07 7:20 
GeneralRe: Authorization Problem Pin
Semion_N19-Jan-07 7:37
Semion_N19-Jan-07 7:37 
GeneralRe: Authorization Problem Pin
Abisodun19-Jan-07 8:06
Abisodun19-Jan-07 8:06 
GeneralRe: Authorization Problem Pin
Semion_N19-Jan-07 8:39
Semion_N19-Jan-07 8:39 
GeneralRe: Authorization Problem Pin
Abisodun20-Jan-07 3:26
Abisodun20-Jan-07 3:26 
AnswerRe: Authorization Problem Pin
Semion_N19-Jan-07 8:47
Semion_N19-Jan-07 8:47 
GeneralRe: Authorization Problem Pin
Dan Neely19-Jan-07 8:55
Dan Neely19-Jan-07 8:55 
GeneralRe: Authorization Problem Pin
Semion_N19-Jan-07 9:11
Semion_N19-Jan-07 9:11 
OK, Please answer me to the question:

       string to = "snaidis@gmail.com";<br />
            string from = "semionn.89@mail.ru";<br />
            CredentialCache cache = new CredentialCache();<br />
            cache.Add(new Uri("http://mail.ru"), "basic", new NetworkCredential("MyAcc", "MyPass"));<br />
            MailMessage message = new MailMessage(from,to);<br />
            message.Subject = "Using the new SMTP client.";<br />
            message.Body = @"Using this new feature, you can send an e-mail message from an application very easily.";<br />
            SmtpPermission permission = new SmtpPermission(true);<br />
            SmtpClient client = new SmtpClient("smtp.mail.ru");<br />
            client.Credentials = cache;<br />
            //client.UseDefaultCredentials = true;<br />
            client.Send(message);

I'v hilighted the changes, but the problem is still the same...



-- modified at 15:12 Friday 19th January, 2007



SnaidiS(Semion)





SnaidiS(Semion)

GeneralRe: Authorization Problem Pin
Rob Graham19-Jan-07 9:46
Rob Graham19-Jan-07 9:46 
GeneralRe: Authorization Problem Pin
Dan Neely19-Jan-07 9:50
Dan Neely19-Jan-07 9:50 
QuestionCan one XML file hold more than one C# object? Pin
TrooperIronMan19-Jan-07 6:42
TrooperIronMan19-Jan-07 6:42 
AnswerRe: Can one XML file hold more than one C# object? Pin
led mike19-Jan-07 7:10
led mike19-Jan-07 7:10 
GeneralRe: Can one XML file hold more than one C# object? Pin
TrooperIronMan19-Jan-07 8:15
TrooperIronMan19-Jan-07 8:15 
GeneralRe: Can one XML file hold more than one C# object? Pin
TrooperIronMan19-Jan-07 13:02
TrooperIronMan19-Jan-07 13:02 
Questionshortcutkey Pin
fmardani19-Jan-07 6:13
fmardani19-Jan-07 6:13 
AnswerRe: shortcutkey Pin
Marc Clifton19-Jan-07 6:21
mvaMarc Clifton19-Jan-07 6:21 
GeneralRe: shortcutkey Pin
Luc Pattyn19-Jan-07 8:37
sitebuilderLuc Pattyn19-Jan-07 8:37 
GeneralRe: shortcutkey Pin
Marc Clifton19-Jan-07 9:26
mvaMarc Clifton19-Jan-07 9:26 
QuestionHow can I get the % CPU usage Pin
robert11019-Jan-07 5:07
robert11019-Jan-07 5:07 
AnswerRe: How can I get the % CPU usage Pin
Guffa19-Jan-07 5:26
Guffa19-Jan-07 5:26 
AnswerRe: How can I get the % CPU usage Pin
Marc Clifton19-Jan-07 5:42
mvaMarc Clifton19-Jan-07 5:42 
AnswerRe: How can I get the % CPU usage Pin
robert11019-Jan-07 11:06
robert11019-Jan-07 11:06 
QuestionWhy value types can inherit System.Object members? Pin
Caetano19-Jan-07 4:21
Caetano19-Jan-07 4:21 
AnswerRe: Why value types can inherit System.Object members? Pin
Marc Clifton19-Jan-07 6:08
mvaMarc Clifton19-Jan-07 6:08 
QuestionHow do I completely get rid of the "has encountered a problem" dialog? Pin
Marc Clifton19-Jan-07 4:04
mvaMarc Clifton19-Jan-07 4:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.