Closed ahdung closed 3 years ago
Hi, this component is actually an SMTP Server, not an SMTP Client so you may be looking in the wrong place.
If you want an SMTP Client, check out https://github.com/jstedfast/MailKit
I know this is a server, my question is when use client connect the server, what address I should type?
When you say the "sender address" are you referring to the sender's address of the email itself, or the address of the server you want to connect to?
If you are referring to the address of the server, then you would use the Smtp Client and connect to the IP address of the host machine that the SMTP Server is running on,.
If you are referring to the sender's address on the email, then that's irrelevant from the perspective of the SMTP server component.
Perhaps share more code to show what you are doing?
Sorry my English is not good.
Actually my purpose is send mail without provider account, so I want integrate a SMTP server into my app, and send mail to users by the App self, without using gmail/outlook or other else, so when I started a SmtpServer
, how to send mail directly? Thank you.
Ok, I don't think this will suit your needs. This SMTP Server wont act as a relay server which is what you need by the sounds of it.
This is just designed to handle the communications with a Mail Client.
Do you mean this server can't really send a mail to someone?
Yes, that is correct.
I see. so~let me curious to ask, what does it do?
I think I got it, it can be a message receiver, accept message in, but never process out. right?
yes that is correct.
If you wanted to forward the message you would need to handle that yourself.
This is maybe a stupid question, forgive me please.
I use this started a server:
so how to set the sender address in SmtpClient?