Torna indietro   Hardware Upgrade Forum > Software > Programmazione

WoW: Midnight, Blizzard mette il primo, storico mattone per l'housing e molto altro
WoW: Midnight, Blizzard mette il primo, storico mattone per l'housing e molto altro
Con Midnight, Blizzard tenta il colpaccio: il player housing sbarca finalmente su Azeroth insieme a una Quel'Thalas ricostruita da zero. Tra il dramma della famiglia Ventolesto e il nuovo Prey System, ecco com'è la nuova espansione di World of Warcraft
Ecovacs Goat O1200 LiDAR Pro: la prova del robot tagliaerba con tagliabordi integrato
Ecovacs Goat O1200 LiDAR Pro: la prova del robot tagliaerba con tagliabordi integrato
Nuova frontiera per i robot tagliaerba, con Ecovacs GOAT O1200 LiDAR Pro che riconosce l'ambiente in maniera perfetta, grazie a due sensori LiDAR, e dopo la falciatura può anche rifinire il bordo con il tagliabordi a filo integrato
Recensione Samsung Galaxy S26+: sfida l'Ultra, ma ha senso di esistere?
Recensione Samsung Galaxy S26+: sfida l'Ultra, ma ha senso di esistere?
Equilibrio e potenza definiscono il Samsung Galaxy S26+, un flagship che sfida la variante Ultra e la fascia alta del mercato con il primo processore mobile a 2nm. Pur mantenendo l'hardware fotografico precedente, lo smartphone brilla per un display QHD+ da 6,7 pollici d'eccellenza, privo però del trattamento antiriflesso dell'Ultra, e per prestazioni molto elevate. Completano il quadro la ricarica wireless a 20W e, soprattutto, un supporto software settennale
Tutti gli articoli Tutte le news

Vai al Forum
Discussione Chiusa
 
Strumenti
Old 30-01-2008, 09:59   #1
Ginos
Member
 
L'Avatar di Ginos
 
Iscritto dal: Jun 2006
Messaggi: 188
Come configurare VList Lite (mail)

La connessione al database ora va ma purtroppo ora mi continua a dare questi errori:
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in
oppure l'errore 501 invalid address . (Mi indica gli errori sempre su entrambe le linee evidenziate in grassetto qui sotto. Dipende da come invio la mail: o in TXT o in HTML)
Non so più cosa modificare!
L'errore mi viene segnalato nel file listsend.it dove risiede la funzione mail()

Questo il codice del file listsend.php:



Citazione:
<? include("listconfig.php"); ?>

<html>
<head>
<title>vList Lite Administrative Interface</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">

<?
ini_set( "SMTP","localhost" ); (questa funzione l'ho aggiunta io per testarlo in locale ora non so se bisogna lasciarla o meno)

if ($Submit=="Send Now!")
{
// Security
$subject = strip_tags($subject);
$TEXTMailText = stripslashes($MailText); // put nl2br() if not showing newline properly in email messages

$connection = mysql_connect($dbhost, $dbusername, $dbpassword);
$query = "SELECT * FROM listsubscribers";
$result = mysql_db_query($dbname, $query);

if ($row = mysql_fetch_array($result))
{
$EmailTo = $row["email"];
$ok = true;
}

while ($row = mysql_fetch_array($result))
{
$EmailTo .= ", " . $row["email"];
$ok = true;
}

if (($mailtype=="text") && ($ok))
{
$Message = $TEXTMailText;
$Message .= $TXTfooter;

$sent = mail ($SenderFrom. "<" . $EmailFrom. ">" , $subject, $Message, "From:$SenderFrom<$EmailFrom>\nReply-to:$EmailReplyTo
\nbcc:$EmailTo" ) ;
}
elseif (($mailtype=="html") && ($ok))
{
$Message = $MailText; // Send HTML mail as it was entered in multi line text box
$Message .= $HTMLfooter;


$sent = mail( $SenderFrom. "<" . $EmailFrom. ">" , $subject, $Message, "From:$SenderFrom<$EmailFrom>\nReply-to:$EmailReplyTo
\nbcc:$EmailTo\nContent-Type:text/html; charset=iso-8859-1" ) ;
}

}
?>

Queste le variabili nel file listconfig.php:


Citazione:
<?
// Database settings
$dbhost = "localhost"; // change this to reflect your db host name
$dbusername = "******"; // change this to reflect your db username
$dbpassword = "******"; // change this to reflect your db password
$dbport = "3306"; // default is 3306; change this if different
$dbname = "*******"; // name of the database

// ***** Email Settings *****

// Value for the FROM field of the message to member
$SenderFrom = "TEST MAIL" ;

// email address that will show from the email you sent. every email sent to the list would also be sent here
$EmailFrom = "[email protected]" ;(E' corretto inserire il mio indirizzo in questa variabile anche se l'SMTP è impostato su localhost?)

// email address where list member replies will be sent
$EmailReplyTo = "[email protected]" ;
(

// URL of listunsubscribe.php - Change this to reflect your settings
$UnsubscribeURL = "http://www.domain.net/vListLite/listunsubscribe.php";

// unsubscribe text version - you may opt to change this
$TXTfooter = "\n\n---------------------------------------------\nTo unsubscribe from this mailing list, please click on the URL below OR if this is not possible, copy and paste the URL into your web browser and then enter your email address in the field provided. The URL is: " . $UnsubscribeURL;

// unsubscribe html version - you may opt to change this
$HTMLfooter = "<br><BR>---------------------------------------------<br><font face=\"Verdana\" size=\"1\">To unsubscribe from this mailing list, please click on the URL below OR if this is not possible, copy and paste the URL into your web browser and then enter your email address in the field provided. The URL is: " . $UnsubscribeURL;

?>

Ovviamente il tutto funziona alla grande in locale! Sicuramente sarà qualche problema di configurazione (l'applicativo era già compilato).
Ragazzi entro oggi dovrei renderlo funzionante mi aiutate per favore?
Grazie mille
Ginos è offline  
Old 30-01-2008, 18:00   #2
cionci
Senior Member
 
L'Avatar di cionci
 
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
Thread chiuso
|
V
cionci è offline  
 Discussione Chiusa


WoW: Midnight, Blizzard mette il primo, storico mattone per l'housing e molto altro WoW: Midnight, Blizzard mette il primo, storico ...
Ecovacs Goat O1200 LiDAR Pro: la prova del robot tagliaerba con tagliabordi integrato Ecovacs Goat O1200 LiDAR Pro: la prova del robot...
Recensione Samsung Galaxy S26+: sfida l'Ultra, ma ha senso di esistere? Recensione Samsung Galaxy S26+: sfida l'Ultra, m...
Zeekr X e 7X provate: prezzi, autonomia fino a 615 km e ricarica in 13 minuti Zeekr X e 7X provate: prezzi, autonomia fino a 6...
Marathon: arriva il Fortnite hardcore Marathon: arriva il Fortnite hardcore
I 4 migliori portatili su Amazon: c'&egr...
Nutanix accelera la migrazione da VMware...
Nutanix apre ai neocloud: piattaforma mu...
Nutanix amplia la piattaforma cloud e st...
Le fotografie dell'eclissi solare e dell...
Oracle AI Database si potenzia con nuove...
Russia offline: blackout internet mobile...
Gemini, Google investe 30 milioni per la...
Roborock Qrevo Edge S5A: 17.000 Pa, acqu...
Resa pubblica la foto della ''Terra che ...
Il robot che ha piegato 200 scatole di f...
SteelSeries Aerox 3 Wireless Gen 2: nuov...
"Quasi sociopatico": Sam Altma...
Star Wars Eclipse in difficoltà: ...
Gestione del team e romance organiche: l...
Chromium
GPU-Z
OCCT
LibreOffice Portable
Opera One Portable
Opera One 106
CCleaner Portable
CCleaner Standard
Cpu-Z
Driver NVIDIA GeForce 546.65 WHQL
SmartFTP
Trillian
Google Chrome Portable
Google Chrome 120
VirtualBox
Tutti gli articoli Tutte le news Tutti i download

Strumenti

Regole
Non Puoi aprire nuove discussioni
Non Puoi rispondere ai messaggi
Non Puoi allegare file
Non Puoi modificare i tuoi messaggi

Il codice vB è On
Le Faccine sono On
Il codice [IMG] è On
Il codice HTML è Off
Vai al Forum


Tutti gli orari sono GMT +1. Ora sono le: 06:14.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Served by www3v