I have a Django admin action called "Selected Email Items". Check some participants and click the "Go" button, and the user's mail program will open. Letters from selected participants were previously entered.
This works Django HttpResponseRedirect (uri) with uri, which is "mailto: email1, email2 .. where email addresses1, email2 ... were viewed on the server.
The only problem is that the browser redirects to a blank page and also opens the client's email program.
Is there any way to avoid this?
- Peter
HttpResponseRedirect. mailto: line . <a href="mailto:email1...">Email selected members</a>
<a href="mailto:email1...">Email selected members</a>
, , , , .
, -, , , URL- . , ( ), , API - .
, , , HttpResponse(), <meta http-equiv="refresh" content="0; url=mailto:youremail@test.com" />. , mailto:.
HttpResponse()
<meta http-equiv="refresh" content="0; url=mailto:youremail@test.com" />
mailto:
, Javascript window.close(). , . Javascript .
window.close()
, , mailto:, /.
, !
, . RFC 2616 , re 302 :
URI "" . HEAD, URI ()
, , , () . , , URL-. URL- mailto: URL- .
Source: https://habr.com/ru/post/1770132/More articles:Availability of iPhone EKEvent, I'm trying to install it, but it will not change - user-interface.NET COMException not registered - .netComparison of geospatial support for mongodb and postgis - postgresqlСоздание расписания - algorithmКак получить пользовательский ввод на интерфейсе часов - jqueryThe preferred declare / initialize method is syntaxопция gcc: получить начальные и конечные адреса встроенных функций - gccmillions of inextricable spaces in an aspx file? - asp.netFlex Unit 4 - Hello World - flexHow to parse author name and book title from purified HTML using XPath? - xpathAll Articles