aziela
Posts: 12
|
| Posted: 03/26/2009, 7:39 PM |
|
Hello everybody...
I have a problem here.. I want to send the email to user who are forgot their password but the email cannot be sent. What function of SMTP Server and what should i put into the column beside SMTP Server in properties table? Should I use "send email" action?? Can anyone give an idea to solve this problem.. please....
|
 |
 |
melvyn
Posts: 333
|
| Posted: 03/26/2009, 9:03 PM |
|
PHP? ASP? ASP.Net ? Java? Perl?
There's no way to help you if we don't know which language you're using.
_________________
Melvyn Perez
Puro Codigo
http://purocodigo.com |
 |
 |
aziela
Posts: 12
|
| Posted: 03/26/2009, 9:13 PM |
|
I use php language.. Anyone can help me???
|
 |
 |
melvyn
Posts: 333
|
| Posted: 03/26/2009, 10:11 PM |
|
you don't need smtp...
$to ="melvyn@example.com";
$from ="aziela@example.com";
$subject = "test email"
$headers = "From: $from \r\n" .
"Reply-To: $from \r\n" .
"MIME-Version: 1.0 \r\n".
"Content-type: text/html; charset=iso-8859-1' \r\n".
"X-Mailer: PHP/ " . phpversion();
mail($to,$subject,$body,$headers)
_________________
Melvyn Perez
Puro Codigo
http://purocodigo.com |
 |
 |
aziela
Posts: 12
|
| Posted: 03/27/2009, 1:00 AM |
|
One more thing, it is possible to me to send the email from localhost if the website not yet
publish? Please melvyn...
|
 |
 |
melvyn
Posts: 333
|
| Posted: 03/27/2009, 8:38 AM |
|
Yes, it's possible. You must have a working SMTP server on your localhost or testing server.
Try to get one working, see this list http://en.wikipedia.org/wiki/Comparison_of_mail_servers to find one that you can like.
Some ISP will not allow you to send email from your localhost.
I recommend to use a subdomain in your production server to test your project.
_________________
Melvyn Perez
Puro Codigo
http://purocodigo.com |
 |
 |