Varshini
asked on
How to configure Exchange server email ?
I am using SMTP for sending email in .net build application.
But recently one of my client gave me the following exchange server details
Exchange server name :
and email id :
asked me to use this in the application.
But my application not running in the domain and the users using local machine login and using the application.
But i believe that if i want to use the exchange server the machine should be login in the domain.
Is this correct ?
What is different between using SMTP and Exchange server ?
Can i able to send email In my application if i use the exchange server name and email id without changing any coding ? OR i need to change the code for to use exchange server ?
But recently one of my client gave me the following exchange server details
Exchange server name :
and email id :
asked me to use this in the application.
But my application not running in the domain and the users using local machine login and using the application.
But i believe that if i want to use the exchange server the machine should be login in the domain.
Is this correct ?
What is different between using SMTP and Exchange server ?
Can i able to send email In my application if i use the exchange server name and email id without changing any coding ? OR i need to change the code for to use exchange server ?
ASKER
client gave me the following details to configure EMAIL
Exchange server name : exchange05.myserver.local
Email id : ersemail@aa.com
password : XXXXXXXX
But when i execute the following code
MailMessage message = new MailMessage("aaa@aaa.org", "aaab@yaho o.com"," test","test");
SmtpClient emailClient = new SmtpClient("exchange05.mys erver.loca l");
System.Net.NetworkCredenti al SMTPUserInfo = new System.Net.NetworkCredenti al("ersema il@aa.com" ,"XXXXXXXX ");
emailClient.UseDefaultCred entials = false;
emailClient.Credentials = SMTPUserInfo;
emailClient.Send(message);
asp.net
<system.net>
<mailSettings>
<smtp from="ersemail@aa.com">
<network host=" exchange05.myserver.local" port="25" userName="="ersemail@aa.co m" password="XXXXXXXX"/>
</smtp>
</mailSettings>
</system.net>
i got this error message :
Mailbox unavailable. The server response was: 5.7.1 Unable to relay
please let me know how to fix this ?
Since my application using asp.net should i need to configure the SMTP in IIS7 ?
please let me know
Exchange server name : exchange05.myserver.local
Email id : ersemail@aa.com
password : XXXXXXXX
But when i execute the following code
MailMessage message = new MailMessage("aaa@aaa.org",
SmtpClient emailClient = new SmtpClient("exchange05.mys
System.Net.NetworkCredenti
emailClient.UseDefaultCred
emailClient.Credentials = SMTPUserInfo;
emailClient.Send(message);
asp.net
<system.net>
<mailSettings>
<smtp from="ersemail@aa.com">
<network host=" exchange05.myserver.local"
</smtp>
</mailSettings>
</system.net>
i got this error message :
Mailbox unavailable. The server response was: 5.7.1 Unable to relay
please let me know how to fix this ?
Since my application using asp.net should i need to configure the SMTP in IIS7 ?
please let me know
This will answer your question I guess
http://forums.asp.net/t/1019543.aspx/1
http://forums.asp.net/t/1019543.aspx/1
ASKER
Mailbox unavailable. The server response was: 5.7.1 Unable to relay
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Just configure port 25 i.e. SMTP protocol which is used for sending email.
and configure authentication, That's it