Code

Discussion on Asp.net Contact Form - HTML Email (Bootstrap Edition)

mimtiyaz

mimtiyaz supports this item

Supported

This author's response time can be up to 1 business day.

21 comments found.

How do you tie this using Office 365 mail client? I have added smtpClient.enableSSL=”true” and that allows communication but I get an error of 5.3.4 554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 16.55847:69000000, 17.43559:0000000060010000000000000000000000000000, 20.521

Actually I found a post that claims Microsoft simply doesn’t allow this functionality

Final update, I contacted Microsoft and they were kind enough to walk me through the process of tying this form to Office 365! It can be done and works great! I did have to add a param for smtpClient.EnableSsl = true; to enable TLS of course, for me line 53 just before .Send(message) on default.aspx.cs. I then followed the instructions from the MS URL to send via client. https://docs.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-office-3

Final step was to add jquery-3.3.1.js to the js folder and update the link on line 112 for Default.aspx. That did the trick! up and running and working great! Wonderful job on the code and the form!! :)

That’s great

by
by
by
by
by
by