Dobry den
snazim se z nasi aplikace odeslat email pres smtp server Office365
mam nastaveno kodovani TLS, smtp.office365.com, port 587
a spravny ucet.
Adresa odesilatele je stejna jako uzivatelske jmeno kterym se hlasim na smtp server - presto mi to nejde odeslat a hlasi nasledujici chybu
554 5.2.252 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message.
Solution: This error means the user whose credentials you specified in the SMTP connection cannot submit messages on behalf of the user specified in the From and/or Sender MIME headers or the FROM SMTP command.
nasel jsem tento odkaz:
https://stackoverflow.com/questions/54784431/unable-to-send-smtp-mails-using-office365-settings
Ale z toho jsem v podstate pochopil jen to ze musi byt stejny odesilatel a uzivatelske jmeno kterym se hlasim na smtp - coz mam.
Mam nastaveno uplne stejne (kontroluju to i vypisem z debugovaci utility) - SMTP_USER_NAME, SMTP_SENDER_ADDRESS a FROM - vse nastavuju stejne.
Netusi nekdo co delam spatne ze to nefunguje?
Dekuji za nasmerovani, Tomas