No Mail Function
Posted by: kwpott (---.dhcp.aldl.mi.charter.com)
Date: May 28, 2007 04:08PM

Is there a send mail function built into Wamp 5.1.7.1? I have joomla installed with it on my home computer (localhost) and there seems to be no mail function, and joomla references a sendmail path of /usr/sbin/sendmail which doesn't exist anywhere on my computer.

If there is no sendmail function, how can I add it?



kwpott

Options: ReplyQuote
Re: No Mail Function
Posted by: CyberSpatium (71.237.217.---)
Date: May 29, 2007 07:00AM

search the forum this topic has been posted many times


CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!

Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.

Web Development for Newbie's Blog

Options: ReplyQuote
Re: No Mail Function
Posted by: shakhawat (202.56.5.---)
Date: May 29, 2007 10:53AM

YOU will need a mailserver address.
for example your mail server is 10.10.20.49
Now you can send mail by two ways
step 1:
try search SMTP in php.ini

you will find this
[mail function]
; For Win32 only.
SMTP = localhost

you will put this
[mail function]
; For Win32 only.
SMTP = 10.10.20.49
=========================================
now just make a php file and put this modify and run it
=========================================
<?php
/* recipients */
$to = "mary@example.com" . ", " ; // note the comma
$to .= "kelly@example.com";

/* subject */
$subject = "Birthday Reminders for August";

/* message */
$message = '
<html>
<head>
<title>Birthday Reminders for August</title>
</head>
<body>
<p>Here are the birthdays upcoming in August!</p>
<table>
<tr>
<th>Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
</body>
</html>
';

/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

/* additional headers */
$headers .= "To: Mary <mary@example.com>, Kelly <kelly@example.com>\r\n";
$headers .= "From: Birthday Reminder <birthday@example.com>\r\n";
$headers .= "Cc: birthdayarchive@example.com\r\n";
$headers .= "Bcc: birthdaycheck@example.com\r\n";

/* and now mail it */
mail($to, $subject, $message, $headers);
?>
==================
STEP 2:
================
No need to configure php.ini

just use and run the code bellow


<?php

$varname="SMTP";
$newvalue="10.10.20.49";
ini_set($varname,$newvalue);

/* recipients */
$to = "mary@example.com" . ", " ; // note the comma
$to .= "kelly@example.com";

/* subject */
$subject = "Birthday Reminders for August";

/* message */
$message = '
<html>
<head>
<title>Birthday Reminders for August</title>
</head>
<body>
<p>Here are the birthdays upcoming in August!</p>
<table>
<tr>
<th>Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
</body>
</html>
';

/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

/* additional headers */
$headers .= "To: Mary <mary@example.com>, Kelly <kelly@example.com>\r\n";
$headers .= "From: Birthday Reminder <birthday@example.com>\r\n";
$headers .= "Cc: birthdayarchive@example.com\r\n";
$headers .= "Bcc: birthdaycheck@example.com\r\n";

/* and now mail it */
mail($to, $subject, $message, $headers);
?>

Options: ReplyQuote
Re: No Mail Function
Posted by: kwpott (---.dhcp.aldl.mi.charter.com)
Date: May 29, 2007 05:51PM

shakhawat your answer is too confusing and I have no idea what you are talking about.

CyberSpatium I've read every post, and none of them were self-hosted on winxp, and none of them were any help, at least the ones I could understand.

I don't need to have any security, there is nothing sensitive on the test computer. I just need to get every function going for test purposes before upping this to another host, or hosting it myself on Linux or an improved wamp version that is secure like Mars Warrior describes.

I've posted on the joomla forums and no one there has been able to tell me how to get the email confirmation to logins to work.

Why don't you and mars warrior get together and make a secure WAMP6 or something, that installs how he says?

I would like to be able to have a secure WAMP/JOOMLA website that could be hosted on my own computer.



kwpott

Options: ReplyQuote
Re: No Mail Function
Posted by: CyberSpatium (71.237.217.---)
Date: May 29, 2007 08:04PM

wamp does not come with an smtp server so you cannot send emails with it.



CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!

Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.

Web Development for Newbie's Blog

Options: ReplyQuote
Re: No Mail Function
Posted by: mikethm (---.singnet.com.sg)
Date: May 29, 2007 11:20PM

kwpott,
I think you are rather rude to people who are trying to help you.

There are various solutions to your issue.

1. Use your isp smtp server instead of using php sendmail.
You can simply do this inside Joomla! global configurations.

2. Set up a mail server.
If you have no idea what is DNS records, nameservers or MX records... stick to (1).
To do this, you must have a valid domain and proper MX records. The MX records must point towards your IP. Next you must download a mail server program and set up a mail server(proceed to www.hmailserver.com for a mailserver which is very easy to set up following their tutorial). Once you have verify that your mail server is functioning. You edit the php.ini file with a text editor.
you will find this
[mail function]
; For Win32 only.
SMTP = localhost

you will put this
[mail function]
; For Win32 only.
SMTP = yourdomain*

* where your domain is your domain name. example would be "kwpottisajerk.com"

And lastly, I downloaded WAMP5 yesterday for the 1st time in my life and it was a sweet and easy installation and configuration. And to rebute your senseless suggestion that php mail doesn't work. I got it working on 1st try. Coz I installed a mailserver. And oh yes, my server is a Windows XP machine.

Options: ReplyQuote
Re: No Mail Function
Posted by: shakhawat (202.56.5.---)
Date: May 30, 2007 04:48AM

I have already gave you the solution step by step solution....
please read this......
let me ask you one thing?


Do you know your SMTP server address?
If yes
follow my step.
if no
WORK WITH MAILSERVER
THEN COME UP WITH THE MAIL SERVER ADDRESS
**if you dont have any idea about mailserver then i recommend you to have some idea about it.

Options: ReplyQuote


Sorry, only registered users may post in this forum.