Office 365 configuration using in SMTP

Hello Friends,

we have developed one service to send mail through SMTP settings.  My client is using Office 365 email Id. 

For Example:

username: abc@domain.com , password: XXXXXX

From email: abc@domain.com

ssl=true

hostname: smtp.office365.com

In above case,Mail successfully sent.

But as per below settings, we are getting failure in mail sending:

username: abc@domain.com , password: XXXXXX

From email: pqr@domain.com

ssl=true

hostname: smtp.office365.com

Error: "Mailbox unavailable. The server response was: 5.7.1 Client does not have permissions to send as this sender"

In above case,we have used different from Name and account email id.  

Please give me some solution to solve above issue.

Thanks,

Sonal Patel

July 24th, 2014 7:28am

Hello Sonal,

I'd recommend asking non-programming questions in the Office 2013 and Office 365 ProPlus - IT Pro General Discussions  forum instead. The current forum is for development questions, not configurations.

Free Windows Admin Tool Kit Click here and download it now
July 24th, 2014 10:47am

Hi thanks,

we have set this settings in our windows service source code to send mail. 

Thanks,

Sonal Patel

July 24th, 2014 11:11am

No. Still issue is not solved. 

you have provide me solution for windows user. but we are getting issue in coding with from emai and account name.

Thanks,

Sonal Patel

July 25th, 2014 6:35am

Hi Sonal,

The user abc@domain.com does not have Send-As permission as user pqr@domain.com

Make sure either the From email and user name are same or provide necessary send as permission.

Regards

Sachin

Free Windows Admin Tool Kit Click here and download it now
April 29th, 2015 5:32pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics