MailMessage 2.0.2

WP8 and WP7 SMTP client library to send emails without using the EmailComposeTask, and attach any type of file.

Main Features:

• connects to Microsoft Live, Gmail or to a custom SMTP mail server (SSL/TLS compatible).
• supports any kind of attachment, from resource or isolated storage: pdf, mp3, wav, mp4, avi, bmp, txt, zip, jpg, etc.
• sends an email without calling EmailComposeTask and does not need user intervention.
• multithreaded: will not freeze/block your UI.
• works on wifi and data connection.
• supports international charset (Chinese).


Usage scenario:

//create a new MailMessage object
MailMessage mailMessage = new MailMessage();

//set a Live/Hotmail or Gmail, or a custom SMTP account
mailMessage.UserName= "*****@hotmail.com;
mailMessage.Password = "********";
mailMessage.AccountType = AccountType.MicrosoftAccount;
mailMessage.From = "myapp@mycompany.com";

//set mail data
mailMessage.To = "foo@foo.com";
mailMessage.ReplyTo = "foo5@foo.com";
mailMessage.Subject = "Hello from WP";
mailMessage.Body = "I can send any type of attachment from my app now !!";   //text or HTML

//attach ANY KIND of file from a resource or IsolatedStorage path
mailMessage.AddAttachment("\rex\file.wav");
mailMessage.AddAttachment("\myFolder\file.mp3");
mailMessage.AddAttachment("\downloads\file.mp4");
//attach from in-memory data:
mailMessage.AddAttachment(Encoding.UTF8.GetBytes("yesssss".ToCharArray()), "memoryfile.txt");

//set message event handlers
mailMessage.Error +=  mailMessage_Error;
mailMessage.MailSent += mailMessage_MailSent;
mailMessage.Progress += mailMessage_Progress;  

//send email (async)
mailMessage.SendMail();

Support:  support@venetasoft.it

Install-Package MailMessage -Version 2.0.2
dotnet add package MailMessage --version 2.0.2
<PackageReference Include="MailMessage" Version="2.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MailMessage --version 2.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

support@venetasoft.it

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.2 2,519 3/4/2014
2.0.1 605 3/4/2014
2.0.0 558 3/2/2014
1.3.3 458 3/2/2014
1.3.2 597 3/2/2014
1.3.1 539 3/2/2014