cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to send out emails from web application

Hi

 

I am trying to send out emails from my web application.  I have a VPS package.  My application settings are as follows:

 

<smtp deliveryMethod="Network" from="info@xxxxxxxx.com">
<network host="smtp.office365.com" password="XXXXXXXXX" port="587" enableSsl="true" userName="info@xxxxxxxx.com" />
</smtp>

 

I have set up some code to send out an email confirmation if I receive an email from a contact form.  I am not receiving the email enquiries but sending out the responses.  The only time I get an email is if I put in the correct domain i.e. info@xxxxxxxx.com.  

 

i've thrown an exception which says:  

 

Mailbox unavailable. The server response was: 5.7.60 SMTP; Client does not have permissions to send as this sender [LO2P265MB0432.GBRP265.PROD.OUTLOOK.COM]

 

Any ideas on how I can get this working?

 

Thanks

 

Rob