Torna indietro   Hardware Upgrade Forum > Software > Programmazione

Recensione Samsung Galaxy Z Fold7: un grande salto generazionale
Recensione Samsung Galaxy Z Fold7: un grande salto generazionale
Abbiamo provato per molti giorni il nuovo Z Fold7 di Samsung, un prodotto davvero interessante e costruito nei minimi dettagli. Rispetto al predecessore, cambiano parecchie cose, facendo un salto generazionale importante. Sarà lui il pieghevole di riferimento? Ecco la nostra recensione completa.
The Edge of Fate è Destiny 2.5. E questo è un problema
The Edge of Fate è Destiny 2.5. E questo è un problema
Bungie riesce a costruire una delle campagne più coinvolgenti della serie e introduce cambiamenti profondi al sistema di gioco, tra nuove stat e tier dell’equipaggiamento. Ma con risorse limitate e scelte discutibili, il vero salto evolutivo resta solo un’occasione mancata
Ryzen Threadripper 9980X e 9970X alla prova: AMD Zen 5 al massimo livello
Ryzen Threadripper 9980X e 9970X alla prova: AMD Zen 5 al massimo livello
AMD ha aggiornato l'offerta di CPU HEDT con i Ryzen Threadripper 9000 basati su architettura Zen 5. In questo articolo vediamo come si comportano i modelli con 64 e 32 core 9980X e 9970X. Venduti allo stesso prezzo dei predecessori e compatibili con il medesimo socket, le nuove proposte si candidano a essere ottimi compagni per chi è in cerca di potenza dei calcolo e tante linee PCI Express per workstation grafiche e destinate all'AI.
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 = "mio_indirizzo@dominio.it" ;(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 = "mio_indirizzo@dominio.it" ;
(

// 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


Recensione Samsung Galaxy Z Fold7: un grande salto generazionale Recensione Samsung Galaxy Z Fold7: un grande sal...
The Edge of Fate è Destiny 2.5. E questo è un problema The Edge of Fate è Destiny 2.5. E questo ...
Ryzen Threadripper 9980X e 9970X alla prova: AMD Zen 5 al massimo livello Ryzen Threadripper 9980X e 9970X alla prova: AMD...
Acer TravelMate P4 14: tanta sostanza per l'utente aziendale Acer TravelMate P4 14: tanta sostanza per l'uten...
Hisense M2 Pro: dove lo metti, sta. Mini proiettore laser 4K per il cinema ovunque Hisense M2 Pro: dove lo metti, sta. Mini proiett...
Fai da te: trapani avvitatori a doppia b...
Microsoft può stappare lo champag...
Amazon vola a 167,7 miliardi nel Q2: i n...
Meglio il robot Lefant M330Pro a 104€ o ...
iPhone 16 trascina Apple al miglior trim...
Schiaffo a Zuckerberg, offerta da 1 mili...
Intel XeSS 2.1 apre Frame Generation e L...
2 portatili tuttofare Lenovo da prendere...
Ericsson valuta un investimento strategi...
Abbiamo i processori più veloci d...
Inizia agosto, nuovi coupon nascosti Ama...
Dyson o low cost? Tutte le offerte sulle...
Linus Torvalds usa ancora una Radeon RX ...
Roborock Q7 L5+ è imperdibile a 2...
Identikit della scheda video perfetta, p...
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: 09:37.


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