SMTP Relay

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

My hosting company supports SMTP relay. May I ask how can I write a C# code
to send email through my program?

string sender;
string email;
string subject;
string message;

Is there any sample c# code? or library to do it?

Thanks
 
SMTP relay just means that you can use the local SMTP server to send to
anyone, not just to other users on the same server. It's pretty much the
standard configuration for servers run by hosting companies.

http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwebmailsmtpmailclasstopic.asp

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
qwerty said:
There is a class called Smtp you can use to send emails.
You could also check out OpenSMTP.Net
https://sourceforge.net/projects/opensmtp-net/ which is a pure SMTP
implementation which allows you a little more flixibility than the
built-in classes.

--

____________________________________________
Scott C. Reynolds - Tales From the SharpSide
http://www.scottcreynolds.com
(e-mail address removed)

*****Get your SharpSide Swag!******
http://www.cafepress.com/sharpside/
***********************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top