Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
ivan  
#1 Posted : Tuesday, March 29, 2011 6:21:02 PM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,153

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
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.

Edited by user Sunday, April 3, 2011 7:40:04 PM(UTC)  | Reason: Not specified

deepthi  
#2 Posted : Friday, May 3, 2013 1:58:45 AM(UTC)
deepthi

Rank: Newbie

Groups: Registered
Joined: 5/3/2013(UTC)
Posts: 0
Location: India

ivan wrote:
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.

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  
#3 Posted : Sunday, May 5, 2013 7:37:38 AM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,153

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)

Hi, What error did you get? Could you give me more detail?
ravi.bhat  
#4 Posted : Tuesday, January 28, 2020 6:19:12 AM(UTC)
ravi.bhat

Rank: Newbie

Groups: Registered
Joined: 1/28/2020(UTC)
Posts: 0
India
Location: Bangalore

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  
#5 Posted : Tuesday, January 28, 2020 5:36:47 PM(UTC)
ivan

Rank: Administration

Groups: Administrators
Joined: 11/11/2010(UTC)
Posts: 1,153

Thanks: 9 times
Was thanked: 55 time(s) in 55 post(s)
Originally Posted by: ravi.bhat Go to Quoted Post
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.


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

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;


Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.075 seconds.

EXPLORE TUTORIALS

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