webForumDet fria alternativet

Mail needs authentication

2 svar · 237 visningar · startad av Boogaloo

BoogalooMedlem sedan apr. 200255 inlägg
#1

Får följande fel när jag försöker skicka mail med php, följande kod:

$email = "mattias@ctrlalt.com";

//if(eregi("googlebot",$_SERVER['HTTP_USER_AGENT'])) { 
mail($email, "Googlebot detected","Google has crawled : ".$_SERVER['REQUEST_URI']);

Och får följande fel:
Warning: mail(): SMTP server response: 503 This mail server requires authentication. Please check your mail client settings. in testMail.php on line 6

Vet någon hur man skickar mail, eller ändrar i php.ini så att jag "loggar in" innan jag skickar?

stevenetMedlem sedan juni 20001 251 inlägg
#2

Med hjälp av imap_open och imap_mail kan du göra detta, om du nu har stöd för imap, vill säga.
http://se.php.net/manual/en/function.imap-open.php
http://se.php.net/manual/en/function.imap-mail.php

BoogalooMedlem sedan apr. 200255 inlägg
#3

imap_mail

Har stöd för imap_mail och har använt det förrut men jag får samma fel på imap_mail som mail.

125 ms totalt · 3 externa anrop · v20260731065814-full.3ab8d573
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
123 ms — hämta tråd, inlägg och bilagor (db)