Both![]()
Both![]()
jQuery Selectors Tutorial - jQuery Striped Table tutorial - jQuery Events - jQuery Validation
Sorry if I don't post as often as I did, I'll try to get here as much as possible! I'm working my bum off to get this scholarship and other stuff!
this is the code i am using, but i get this error that say Fatal error: Class 'Mail' not found in C:\Program Files\xampp\htdocs\mail.php on line 16Code:<?php
require_once "mail.php";
$from = "shino_jm@hotmail.com";
$to = "taychorkhee@hotmail.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you? i want you to call me.";
$host = "mail.singnet.com.sg";
$username = "";
$password = "";
$headers = array ('From' => $from,
'To' => $to,
'Subject' => $subject);
$smtp = mail::factory('smtp',
array ('host' => $host,
'auth' => true,
'username',
'password' => $password));
$mail = $smtp->send($to, $headers, $body);
if (PEAR::isError($mail)) {
echo("<p>" . $mail->getMessage() . "</p>");
} else {
echo("<p>Message successfully sent!</p>");
}
?>
Last edited by John; 10-26-2008 at 01:41 PM.
Do you mean that PEAR is not needed in this piece of code? But without pair it does not work also. After some changing i have received another error:
authentication failure [SMTP: SMTP server does no support authentication (code: 250, response: smtp12.singnet.com.sg Hello bb220-255-206-168.singnet.com.sg [220.255.206.168], pleased to meet you ENHANCEDSTATUSCODES PIPELINING 8BITMIME SIZE 50000000 HELP)]
how to solve this?
any help? any help on this would be greatly appreciated.
Did you bother reading the link I previously posted? PHP: mail - Manual
It gives you four copy/paste examples....
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum