A
aslantifosi
hi all,
My question is about that i use a smpt server which is running on a different machine from my webserver machine. And i can authenticate with a user and password. I use SmtpMail class. i set the smtpserver property. but how can i authenticate with my user and pass?
for ex:
my user :[email protected]
pass :12345
Message.From = myuser;
Message.To=strTo;
Message.Subject=strSubject;
Message.Body = strBody;
try
{
SmtpMail.SmtpServer = "172.19.1.123";
SmtpMail.Send(Message);
}
catch(System.Web.HttpException ehttp)
{
}
My question is about that i use a smpt server which is running on a different machine from my webserver machine. And i can authenticate with a user and password. I use SmtpMail class. i set the smtpserver property. but how can i authenticate with my user and pass?
for ex:
my user :[email protected]
pass :12345
Message.From = myuser;
Message.To=strTo;
Message.Subject=strSubject;
Message.Body = strBody;
try
{
SmtpMail.SmtpServer = "172.19.1.123";
SmtpMail.Send(Message);
}
catch(System.Web.HttpException ehttp)
{
}