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

C#

 
AnswerRe: Array.getLength() vs Array.getUpperBound() Pin
jchigg200019-Jan-07 8:16
jchigg200019-Jan-07 8:16 
AnswerRe: Array.getLength() vs Array.getUpperBound() Pin
Guffa19-Jan-07 8:17
Guffa19-Jan-07 8:17 
AnswerRe: Array.getLength() vs Array.getUpperBound() Pin
Dustin Metzgar19-Jan-07 8:18
Dustin Metzgar19-Jan-07 8:18 
AnswerRe: Array.getLength() vs Array.getUpperBound() Pin
C++NewBe19-Jan-07 8:29
C++NewBe19-Jan-07 8:29 
QuestionSerializing in RESX file? Pin
Barguast219-Jan-07 7:59
Barguast219-Jan-07 7:59 
Questionhow to play video from stream ? Pin
hdv21219-Jan-07 7:44
hdv21219-Jan-07 7:44 
QuestionRe: how to play video from stream ? Pin
calabe22-Jan-07 22:29
calabe22-Jan-07 22:29 
QuestionAuthorization Problem Pin
Semion_N19-Jan-07 6:56
Semion_N19-Jan-07 6:56 
I wrote this class:
<br />
  public class Send_Mail<br />
    {<br />
    <br />
        public void send()<br />
        {<br />
            string to = "snaidis@gmail.com";<br />
            string from = "semionn.89@mail.ru";<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.UseDefaultCredentials = true;<br />
            client.Send(message);<br />
<br />
        }<br />
    }<br />


When I run it I have the following problem:
<br />
An unhandled exception of type 'System.Net.Mail.SmtpException' occurred in System.dll<br />
<br />
Additional information: Bad sequence of commands. The server response was: Administrative prohibition -- authorization required.  Users in your domain are not allowed to send email without authorization.  See http://www.mail.ru/pages/help/261.html for details.<br />


How do I authorize the account?

SnaidiS(Semion)

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 
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 

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.