websss
asked on
send email internally with no password using SmtpClient
A corporate network has an email account where no authentication is required to send emails internally
I'm a little unsure how its done as the SmtpClient needs authentication (as I can see)
They gave me a code sample which works on their end
But I assume this is old tech.
How would I achieve this using SmtpClient
I'm a little unsure how its done as the SmtpClient needs authentication (as I can see)
They gave me a code sample which works on their end
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServerPort) = 25
.Item(cdoSMTPServer) = "mail.theircorp.com"
.Item(cdoSMTPAuthenticate) = cdoBasic
.Item(cdoSendUserName) = "nouser@theircorp.com"
.Item(cdoSendPassword) = ""
.Item(cdoSendEmailAddress) = "nouser@theircorp.com"
But I assume this is old tech.
How would I achieve this using SmtpClient
ASKER
thanks, I need to do this in C# though
Oh,
I'm out in that case, sorry :(
I unfortunately didn't see the Tags of .NET etc.
Regards
Alex
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Use powershell
Open in new window