📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

MailMessage

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

MailMessage

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

2.0.2
NuGet
Version published
Maintainers
1
Created
The README file is missing

Keywords

MailMessage

FAQs

Package last updated on 04 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts