ivan
  • ivan
  • 100% (Exalted)
  • Administration Topic Starter
14 years ago
Introduction

EASendMail is a SMTP component which supports all operations of SMTP/ESMTP protocols (RFC 821, RFC 822, RFC 2554). This tutorial covers everything of sending email with EASendMail in C#.

A simple C# project
Send email over SSL connection
Send email using Gmail account
Send email using Yahoo account
Send email using Hotmail/MSN Live account
Send email directly without SMTP server(MX DNS lookup)
Send HTML email
Send email with attachment
Send email with embedded images
Send email with digital signature (S/MIME)
Email encryption (S/MIME)
Send email with event handler
Send email in asynchronous mode
Send email with multiple threads (Mass Mail)
Total sample projects

Click here to read full tutorial ... 

If you have any comments or questions about above example codes, please add your comments here.
deepthi
12 years ago

Introduction

EASendMail is a SMTP component which supports all operations of SMTP/ESMTP protocols (RFC 821, RFC 822, RFC 2554). This tutorial covers everything of sending email with EASendMail in C#.

A simple C# project
Send email over SSL connection
Send email using Gmail account
Send email using Yahoo account
Send email using Hotmail/MSN Live account
Send email directly without SMTP server(MX DNS lookup)
Send HTML email
Send email with attachment
Send email with embedded images
Send email with digital signature (S/MIME)
Email encryption (S/MIME)
Send email with event handler
Send email in asynchronous mode
Send email with multiple threads (Mass Mail)
Total sample projects

Click here to read full tutorial ... 

If you have any comments or questions about above example codes, please add your comments here.

ivan wrote:


Hi,

I am checking " Send email with digital signature (S/MIME)" this article
& unable to write the same way as SmtpMail oMail = new SmtpMail("TryIt"); This is not working for me in .Net Framework 4.0
Can u pls suggest me how to sign my email??

Regards,
Deepthi
ivan
  • ivan
  • 100% (Exalted)
  • Administration Topic Starter
12 years ago

Hi, What error did you get? Could you give me more detail?
ravi.bhat
5 years ago
Dear Team,
We are trying EASendMail trail version which we will purchase soon.
When using EASendMail in web application to send email in local host everything works fine.
We deployed this web application to web server. and consumed it from postman, it is working.
However when consumed from another web application we get below error.

System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

What could be the root cause?

from web server we are able consume SMTP with port 443
https://outlook.office365.com/EWS/Exchange.asmx 

We are using Exchange server to send email.
ivan
  • ivan
  • 100% (Exalted)
  • Administration Topic Starter
5 years ago

Dear Team,
We are trying EASendMail trail version which we will purchase soon.
When using EASendMail in web application to send email in local host everything works fine.
We deployed this web application to web server. and consumed it from postman, it is working.
However when consumed from another web application we get below error.

System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

What could be the root cause?

from web server we are able consume SMTP with port 443
https://outlook.office365.com/EWS/Exchange.asmx 

We are using Exchange server to send email.

Originally Posted by: ravi.bhat 



https://outlook.office365.com/EWS/Exchange.asmx  is used for EWS protocol, in this case, you should use:

SmtpServer oServer = new SmtpServer("outlook.office365.com");

// Set Exchange Web Service EWS - Exchange 2007/2010/2013/2016/Office365
oServer.Protocol = ServerProtocol.ExchangeEWS;

oServer.User = "myid@mydomain";
oServer.Password = "yourpassword";


// detect SSL/TLS connection automatically
oServer.ConnectType = SmtpConnectType.ConnectSSLAuto;

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.