locked
how can we send email from our device to another mail. RRS feed

  • Question

  • Hi Sir/Madam,
    I am SrinivaaS. I am new to windows mobile development in c#.net.

    I am using this code from your msdn forum blog.

    I have a doubt, how can we send email from our device to another mail,
    This is my code;

    string mail_id = Class1.email_toEmp.ToString();
                EmailMessage message = new EmailMessage();
                Recipient myrecipient = new Recipient("GroupComm", "srinivaasbluefrog@gmail.com");
                message.To.Add(myrecipient);
                message.Subject = txt_subEmp.Text.Trim();
                message.BodyText = txt_bodyEmp.Text.Trim();
                message.Send(mail_id);---> it is receiver mail id,....error came here[Incorrect account name]

                MessagingApplication.Synchronize(mail_id);
                SetForegroundWindow(this.Handle);

                MessageBox.Show("Email Send");

    it's how to get from address and password?

    or where will give this address and how to do?


    ...please send me write code....it is very urgent

    --
    Thanks&Regards
    SrinivaaS.

    Thursday, February 14, 2013 5:02 AM