{"id":936,"date":"2020-12-04T09:06:48","date_gmt":"2020-12-04T08:06:48","guid":{"rendered":"https:\/\/support.websupport.se\/?post_type=ht_kb&p=936"},"modified":"2021-12-20T10:48:38","modified_gmt":"2021-12-20T09:48:38","slug":"skicka-e-post-med-php","status":"publish","type":"ht_kb","link":"https:\/\/kunskap.websupport.se\/kb\/skicka-e-post-med-php\/","title":{"rendered":"Skicka e-post med PHP"},"content":{"rendered":"\n

PHP anv\u00e4nder funktionen mail() f\u00f6r att skicka data som erh\u00e5llits fr\u00e5n formul\u00e4r. Anv\u00e4nd alltid endast den befintliga e-postadressen f\u00f6r As n\u00e4r du definierar data i e-postrubriken. V\u00e5ra e-postservrar \u00e4r inst\u00e4llda f\u00f6r att inte skicka ett meddelande med en fiktiv e-postadress (t.ex. noreply@dindom\u00e4n.com) eller med en adress som skapats p\u00e5 en utl\u00e4ndsk server (t.ex. Gmail).<\/p>\n\n\n\n

Antispam-skydd inf\u00f6rs ocks\u00e5, d\u00e4r From inte kan infogas dynamiskt och endast befintlig e-post kan finnas i v\u00e5ra tj\u00e4nster eller vitlistas.<\/p>\n","protected":false},"excerpt":{"rendered":"

PHP anv\u00e4nder funktionen mail() f\u00f6r att skicka data som erh\u00e5llits fr\u00e5n formul\u00e4r. Anv\u00e4nd alltid endast den befintliga e-postadressen f\u00f6r As n\u00e4r du definierar data i e-postrubriken. V\u00e5ra e-postservrar \u00e4r inst\u00e4llda f\u00f6r att inte skicka ett meddelande med en fiktiv e-postadress (t.ex. noreply@dindom\u00e4n.com) eller med en adress som skapats p\u00e5 en…<\/p>\n","protected":false},"author":8,"template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[64],"ht-kb-tag":[],"class_list":["post-936","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-webb-och-php-installningar"],"yoast_head":"\nSkicka e-post med PHP - Websupport kunskapsdatabas<\/title>\n<meta name=\"description\" content=\"PHP anv\u00e4nder funktionen mail() f\u00f6r att skicka data som erh\u00e5llits fr\u00e5n formul\u00e4r. H\u00e4r kan du l\u00e4sa om olika regler och funktioner kring detta.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kunskap.websupport.se\/kb\/skicka-e-post-med-php\/\" \/>\n<meta property=\"og:locale\" content=\"sv_SE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Skicka e-post med PHP - Websupport kunskapsdatabas\" \/>\n<meta property=\"og:description\" content=\"PHP anv\u00e4nder funktionen mail() f\u00f6r att skicka data som erh\u00e5llits fr\u00e5n formul\u00e4r. H\u00e4r kan du l\u00e4sa om olika regler och funktioner kring detta.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kunskap.websupport.se\/kb\/skicka-e-post-med-php\/\" \/>\n<meta property=\"og:site_name\" content=\"Websupport kunskapsdatabas\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-20T09:48:38+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minut\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kunskap.websupport.se\/kb\/skicka-e-post-med-php\/\",\"url\":\"https:\/\/kunskap.websupport.se\/kb\/skicka-e-post-med-php\/\",\"name\":\"Skicka e-post med PHP - Websupport kunskapsdatabas\",\"isPartOf\":{\"@id\":\"https:\/\/kunskap.websupport.se\/#website\"},\"datePublished\":\"2020-12-04T08:06:48+00:00\",\"dateModified\":\"2021-12-20T09:48:38+00:00\",\"description\":\"PHP anv\u00e4nder funktionen mail() f\u00f6r att skicka data som erh\u00e5llits fr\u00e5n formul\u00e4r. H\u00e4r kan du l\u00e4sa om olika regler och funktioner kring detta.\",\"breadcrumb\":{\"@id\":\"https:\/\/kunskap.websupport.se\/kb\/skicka-e-post-med-php\/#breadcrumb\"},\"inLanguage\":\"sv-SE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kunskap.websupport.se\/kb\/skicka-e-post-med-php\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kunskap.websupport.se\/kb\/skicka-e-post-med-php\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kunskap.websupport.se\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Skicka e-post med PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kunskap.websupport.se\/#website\",\"url\":\"https:\/\/kunskap.websupport.se\/\",\"name\":\"Websupport kunskapsdatabas\",\"description\":\"Websupport kunskapsdatabas\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kunskap.websupport.se\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"sv-SE\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Skicka e-post med PHP - Websupport kunskapsdatabas","description":"PHP anv\u00e4nder funktionen mail() f\u00f6r att skicka data som erh\u00e5llits fr\u00e5n formul\u00e4r. H\u00e4r kan du l\u00e4sa om olika regler och funktioner kring detta.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kunskap.websupport.se\/kb\/skicka-e-post-med-php\/","og_locale":"sv_SE","og_type":"article","og_title":"Skicka e-post med PHP - Websupport kunskapsdatabas","og_description":"PHP anv\u00e4nder funktionen mail() f\u00f6r att skicka data som erh\u00e5llits fr\u00e5n formul\u00e4r. H\u00e4r kan du l\u00e4sa om olika regler och funktioner kring detta.","og_url":"https:\/\/kunskap.websupport.se\/kb\/skicka-e-post-med-php\/","og_site_name":"Websupport kunskapsdatabas","article_modified_time":"2021-12-20T09:48:38+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minut"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/kunskap.websupport.se\/kb\/skicka-e-post-med-php\/","url":"https:\/\/kunskap.websupport.se\/kb\/skicka-e-post-med-php\/","name":"Skicka e-post med PHP - Websupport kunskapsdatabas","isPartOf":{"@id":"https:\/\/kunskap.websupport.se\/#website"},"datePublished":"2020-12-04T08:06:48+00:00","dateModified":"2021-12-20T09:48:38+00:00","description":"PHP anv\u00e4nder funktionen mail() f\u00f6r att skicka data som erh\u00e5llits fr\u00e5n formul\u00e4r. H\u00e4r kan du l\u00e4sa om olika regler och funktioner kring detta.","breadcrumb":{"@id":"https:\/\/kunskap.websupport.se\/kb\/skicka-e-post-med-php\/#breadcrumb"},"inLanguage":"sv-SE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kunskap.websupport.se\/kb\/skicka-e-post-med-php\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kunskap.websupport.se\/kb\/skicka-e-post-med-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kunskap.websupport.se\/"},{"@type":"ListItem","position":2,"name":"Skicka e-post med PHP"}]},{"@type":"WebSite","@id":"https:\/\/kunskap.websupport.se\/#website","url":"https:\/\/kunskap.websupport.se\/","name":"Websupport kunskapsdatabas","description":"Websupport kunskapsdatabas","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kunskap.websupport.se\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"sv-SE"}]}},"_links":{"self":[{"href":"https:\/\/kunskap.websupport.se\/wp-json\/wp\/v2\/ht-kb\/936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kunskap.websupport.se\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kunskap.websupport.se\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kunskap.websupport.se\/wp-json\/wp\/v2\/users\/8"}],"version-history":[{"count":3,"href":"https:\/\/kunskap.websupport.se\/wp-json\/wp\/v2\/ht-kb\/936\/revisions"}],"predecessor-version":[{"id":20543,"href":"https:\/\/kunskap.websupport.se\/wp-json\/wp\/v2\/ht-kb\/936\/revisions\/20543"}],"wp:attachment":[{"href":"https:\/\/kunskap.websupport.se\/wp-json\/wp\/v2\/media?parent=936"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kunskap.websupport.se\/wp-json\/wp\/v2\/ht-kb-category?post=936"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kunskap.websupport.se\/wp-json\/wp\/v2\/ht-kb-tag?post=936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}