Using the E-mail Component

To use the E-mail component:

Example of code generated by the form designer:

private Sybase.UnwiredPlatform.Windows.Device.Email email1;
this.email1 = new Sybase.UnwiredPlatform.Windows.Device.Email();

The following sample code for the event handler uses the ComposeEmailForm() method to send an e-mail message. The user can review the e-mail message before sending it. The addressBox1 TextBox control defines the e-mail address, the subjectBox2 TextBox control defines the e-mail subject, the emailBox3 TextBox control defines the e-mail text.

private void button1_Click(object sender, EventArgs e)
{
   // You can always try to open the send email form or send an email
   this.email1.ComposeEmailForm(this.addressBox1.Text, this.subjectBox2.Text, this.emailBox3.Text, null);
}