wp7mail.dll

Feb 15, 2014 at 3:05 PM
Edited Feb 15, 2014 at 3:07 PM
the following code gives error message invalid token '(' in class ,struct,or interface member declaration . at __task.AddMessageContent("dit is het bericht");
__
namespace ematatch
{
public partial class MainPage : PhoneApplicationPage
{



    // Constructor
    public MainPage()
    {
        InitializeComponent();
         MailMessage task = new MailMessage("theodebock","theodebock@versatel.nl","theodebock@versatel.nl","theo stuurt");
    }

   //  task.AddAttachment("Theo.jpg");
    task.AddMessageContent("dit is het bericht");

      SmtpClient client = new SmtpClient();
    //client.Connect "theodebock@versatel.nl"
     Mmessage.SenderMail(Mmessage);
}
}

regards Theo de Bock