Help...!!!!WAMP able send out email? if yes , how?
Posted by: engkun (202.75.160.---)
Date: December 12, 2007 08:11AM

Is it anyone can help me..? i hv a question here: Can i use the WAMP to send out email(Yahoo or Gmail) with using the php function =====> mail()


Do i need to change any setting at the php.ini?

and what is the different between WAMP and WAMP2??



Thanks a lot!

Regards,
Shohoku

Options: ReplyQuote
Re: Help...!!!!WAMP able send out email? if yes , how?
Posted by: yfastud (Moderator)
Date: December 12, 2007 02:17PM

Wamp doesn't come w/ mail server

The different are too many to post; you might like to discover yourself

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Help...!!!!WAMP able send out email? if yes , how?
Posted by: Melanie (---.saix.net)
Date: December 18, 2007 09:45PM

I'm not sure if this will work for you but it seems as if you are looking for the same thing that I am and that is the ability to send out mail using WAMP

I came accross PHP Mailer its a Full Featured Email Transfer Class for PHP It can be downloaded here and install instructions seem pretty easy but still over my head and am trying to figure it out. You may have better luck

PHP Mailer can be downloaded - [phpmailer.sourceforge.net] apparently only works with PHP5

Class Features:
- Send emails with multiple TOs, CCs, BCCs and REPLY-TOs
- Redundant SMTP servers
- Multipart/alternative emails for mail clients that do not read HTML email
- Support for 8bit, base64, binary, and quoted-printable encoding
- Uses the same methods as the very popular AspEmail active server (COM) component
- SMTP authentication
- Native language support
- Word wrap, and more!

If anyone else tries this and it works - would be nice if you could post it here and let us know how you did it.

The download consists of 3 files:

1.) class.phpmailer.php
2.) class.smtp.php
3.) the language file.

Installation instructions are as follows (as per the install instructions)

Copy class.phpmailer.php into your php.ini include_path. If you are
using the SMTP mailer then place class.smtp.php in your path as well.
Chose the language file that best fits with your language
and place it in the PHP include path.

(seems pretty easy - now just have to figure out how this all work)

here is an example that was included in the download

<?php
require("class.phpmailer.php"winking smiley;

$mail = new PHPMailer();

$mail->IsSMTP(); // set mailer to use SMTP
$mail->Host = "smtp1.example.com;smtp2.example.com"; // specify main and backup server
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "jswan"; // SMTP username
$mail->Password = "secret"; // SMTP password

$mail->From = "from@example.com";
$mail->FromName = "Mailer";
$mail->AddAddress("josh@example.net", "Josh Adams"winking smiley;
$mail->AddAddress("ellen@example.com"winking smiley; // name is optional
$mail->AddReplyTo("info@example.com", "Information"winking smiley;

$mail->WordWrap = 50; // set word wrap to 50 characters
$mail->AddAttachment("/var/tmp/file.tar.gz"winking smiley; // add attachments
$mail->AddAttachment("/tmp/image.jpg", "new.jpg"winking smiley; // optional name
$mail->IsHTML(true); // set email format to HTML

$mail->Subject = "Here is the subject";
$mail->Body = "This is the HTML message body <b>in bold!</b>";
$mail->AltBody = "This is the body in plain text for non-HTML mail clients";

if(!$mail->Send())
{
echo "Message could not be sent. <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}

echo "Message has been sent";
?>

Well I hope this is useful to somebody

Rgds
Melanie

Options: ReplyQuote
Re: Help...!!!!WAMP able send out email? if yes , how?
Posted by: yfastud (Moderator)
Date: December 19, 2007 01:18AM

Quote

$mail->From = "from@example.com";
You stuck there since wamp doesn't have mail server; some people might be able to use their emails for this, but most email providers will block this feature to prevent spammers

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Help...!!!!WAMP able send out email? if yes , how?
Posted by: toivo (---.nsw.bigpond.net.au)
Date: December 19, 2007 09:38AM

Hi,

I manage a commercial website running Joomla and we send emails through the company's SMTP server. Even if your ISP happens to block TCP port 25 to prevent spam, you may still be able to use their STMP server to forward the messages sent from phpmailer or php mail(). In the same way it is possible to set up Sendmail to use the ISP's server as 'smarthost' for totally legitimate forwarding.

In this forum some while back someone had set up phpmail on WAMP to send through Gmail. Worth doing a search.

Regards,

toivo
Sydney, Australia

Options: ReplyQuote


Sorry, only registered users may post in this forum.