
April 26th, 2008, 02:14 AM
|
|
Registered User
|
|
Join Date: Apr 2008
Location: Turkey
Posts: 3
Time spent in forums: 53 m 5 sec
Reputation Power: 0
|
|
You should write down more information about your problem.
if your problem is sending mail your should look @ php[dot]net -> search mail
and if you are looking for a good solution about mail action you should search about "php mailer" i think.
and there is a good solution from php.net User Contributed Notes :
Send mail using Gmail or any other mail service and XPertMailer v.4 (to download you can search from google  i can not paste the url here) :
PHP Code:
<?php
// path to 'MAIL.php' file from XPM4 package
require_once '/path-to/MAIL.php';
$m = new MAIL; // initialize MAIL class
$m->From('username@gmail.com'); // set From mail address
$m->AddTo('client@destination.net'); // add To mail address
$m->Subject('Hello World!'); // set your mail subject
// set your mail message (text/html)
$m->Html('<b>HTML</b> <u>message</u>.');
// connect to MTA server 'smtp.gmail.com' port '465' via SSL ('tls' encryption)
// with authentication: 'username@gmail.com' and 'password'
// set the connection timeout to 10 seconds, the name of your
// host 'localhost' and the authentication method to 'plain'
// make sure you have OpenSSL module (extension) enable on your php configuration
$c = $m->Connect('smtp.gmail.com', 465, 'username@gmail.com', 'password',
'tls', 10, 'localhost', null, 'plain') or die(print_r($m->Result));
// send mail relay using the '$c' resource connection
echo $m->Send($c) ? 'Mail sent !' : 'Error !';
// disconnect from server
$m->Disconnect();
?>
|