| |||||||
| Register | Projects | FAQ | Members List | Mark Forums Read |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
hi dody, How I include indexu script? my server message is ; **********php To send email from php you may use phpMailer. You may download it from http://support.resellerguru.com/downloads/phpmailer.zip. You should extract archive and put file phpmailer.php in the same directory as your script. Next you should use following code to send email instead of mail() function. require("phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = "MAIL.DOMAIN.COM"; $mail->SMTPAuth = true; $mail->Username = "POP3ACCOUNT.NAME"; $mail->Password = "POP3.PASSWORD"; $mail->From = "POP3ACCOUNT.NAME"; //$mail->FromName = "Mailer";//optional from name $mail->AddAddress("RECIPIENT", "RECIPIENT'S NAME"); //$mail->AddReplyTo("sender@example.com", "Information"); $mail->IsHTML(false); // set email format to HTML $mail->Subject = "SUBJECT"; $mail->Body = "BODY"; if(!$mail->Send()) { echo "Message could not be sent. <p>"; echo "Mailer Error: " . $mail->ErrorInfo; } |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mailing list subscription send-out | alfo | v5.x | 1 | 02-15-2006 06:50 AM |
| Send Resource ID to webmasters? | wezman | v5.x | 3 | 07-21-2004 04:34 AM |
| no mail is send by Indexu Lite... | ms70 | v5.x | 0 | 04-01-2004 10:44 AM |
| Option for visitors to email site owners by invoking an email form | Veg | v3.2 | 0 | 09-20-2002 11:13 PM |