By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,213 Members | 2,172 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,213 IT Pros & Developers. It's quick & easy.

SMTP Relay

P: n/a
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

Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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...classtopic.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.
--
"Henry" <He***@discussions.microsoft.com> wrote in message
news:AD**********************************@microsof t.com...
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

Nov 16 '05 #2

P: n/a
There is a class called Smtp you can use to send emails.
On Sat, 22 Jan 2005 23:40:58 -0800, "Nick Malik [Microsoft]"
<ni*******@hotmail.nospam.com> wrote:
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...classtopic.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.


Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.