I've deployed an Reporting website on our intranet environment. Now my TL wants me to send emails using this. But Our company doesn't provide me the SMTP details.
Can i send it by any means?
Like using DNS, or any other option..
I've deployed an Reporting website on our intranet environment. Now my TL wants me to send emails using this. But Our company doesn't provide me the SMTP details.
Can i send it by any means?
Like using DNS, or any other option..
So you want to send email without not using the Simple Mail Transfer Protocol? I am not sure what you mean with that. What you probably mean is, you want to send mail without a mail transfer agent (MTA) installed on a dedicated server, aka "SMTP-Server". That is totally possible, firewall and filter settings aside.
E-Mail was designed to be sent from one computer to any other computer. For that to work, the receiving host needs a service to listen for mails and the sending host just opens a TCP connection to that host and sends it a message; using the SMTP protocol. What you need is your program to implement the SMTP protocol.
You probably don't want to implement the protocol yourself, but there are lots of libraries out there that do that for you. I don't know any good ones for C#, you I can't help you there.
But there is the catch, it may still not work. In the effort to curb SPAM, firewall and MTA administrators will drop any messages from hosts they don't trust. This is especially true for "client" systems. So it depends on your environment, you may want to add a real MTA in the middle or if that is possible add your host to the white list of hosts that may deliver email.
As a note: If you want to send an email to jane@company.com, you don't send a message to jane's computer, you send it to company.com's mail server. That is either a server that answers under company.com or the MX entry in the DNS record. But if you use a third party library, you should not need to worry about that.
Addendum:
Finally as @ta.speot.is points out, in an exchange environment you may also encounter the MAPI protocol. The basic gist is the same, you need to integrate a MAPI library into your application. In this case you will need even more certainly talk to the admins, since they will probably not let a, to them, unknown server talk to the exchange infrastructure.