On Jun 11, 9:05 pm, "BLUE" <bluewrote:
I want to send an email from my web service.
I do not want to act like an email client, giving credentials of an existing
email account to send messages: I would like to send my mail directly to an
SMTP server like if I am myself an SMTP server that is forwarding a mail.
What classes can be used on .NET FW 2?
Thanks,
Luigi.
Hi,
I don't think you can avoid connection to an existing SMTP server.
Email forwarding is made by an SMTP server...
If you don't want to be an SMTP server and send mails at the same
time, it's not possible.
If you have an SMTP server to send the mail with, use the
System.Net.Mail namespace MailMessage & SmtpClient classes to deliver
mail messages.
Otherwise, if you want to implement an SMTP server, you should follow
the RFC for SMTP servers and the section of email forwarding.
Hope this helps.
Moty