Torna indietro   Hardware Upgrade Forum > Software > Programmazione

ASUS ROG Swift OLED PG34WCDN recensione: il primo QD-OLED RGB da 360 Hz
ASUS ROG Swift OLED PG34WCDN recensione: il primo QD-OLED RGB da 360 Hz
ASUS ROG Swift OLED PG34WCDN è il primo monitor gaming con pannello QD-OLED Gen 5 a layout RGB Stripe Pixel e 360 Hz su 34 pollici: lo abbiamo misurato con sonde colorimetriche e NVIDIA LDAT. Ecco tutti i dati
Recensione Nothing Phone (4a) Pro: finalmente in alluminio, ma dal design sempre unico
Recensione Nothing Phone (4a) Pro: finalmente in alluminio, ma dal design sempre unico
Nothing Phone (4a) Pro cambia pelle: l'alluminio unibody sostituisce la trasparenza integrale, portando una solidità inedita. Sotto il cofano troviamo uno Snapdragon 7 Gen 4 che spinge forte, mentre il display è quasi da top dig amma. Con un teleobiettivo 3.5x e la Glyph Matrix evoluta, è la prova di maturità di Carl Pei. C'è qualche compromesso, ma a 499EUR la sostanza hardware e la sua unicità lo rendono un buon "flagship killer" in salsa 2026
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
Tutti gli articoli Tutte le news

Vai al Forum
Rispondi
 
Strumenti
Old 30-01-2008, 20:06   #1
Ginos
Member
 
L'Avatar di Ginos
 
Iscritto dal: Jun 2006
Messaggi: 188
[VList Lite 1.1/PHP]Problemi con invio 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   Rispondi citando il messaggio o parte di esso
Old 31-01-2008, 11:06   #2
Ginos
Member
 
L'Avatar di Ginos
 
Iscritto dal: Jun 2006
Messaggi: 188
up
Ginos è offline   Rispondi citando il messaggio o parte di esso
 Rispondi


ASUS ROG Swift OLED PG34WCDN recensione: il primo QD-OLED RGB da 360 Hz ASUS ROG Swift OLED PG34WCDN recensione: il prim...
Recensione Nothing Phone (4a) Pro: finalmente in alluminio, ma dal design sempre unico Recensione Nothing Phone (4a) Pro: finalmente in...
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...
Secondo Elon Musk FSD è più...
Anche Cloudflare fissa il 2029 per la si...
Hacker sfruttano da mesi un bug segreto ...
ASUSTOR Lockerstor 24R Pro Gen2: 24 bay ...
Rigetti supera la soglia dei 100 qubit: ...
eFootball raggiunge il miliardo di downl...
Come provare OpenClaw facilmente grazie ...
Microsoft conferma: questo glitch dell'o...
Toyota bZ7: una berlina da oltre 5 metri...
Artemis II, le prime foto del lato nasco...
Sempre più pubblicità su YouTube: arriva...
Polestar fa +80% in Italia e tocca quota...
Il tuo Mac smette di connettersi a Inter...
La nuova alleanza Intel-Google ridefinis...
Energia troppo cara, regole da rivedere:...
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: 18:38.


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