HOME       >>       Programming

How To Send Email From Local Wamp To Internet Mail is Compulsary now a days


veerumits

I want to know what configuration changes are required in Local machine to use mail (); function in Localhost to delivered on internet. 1) what is necessary to install and configure? 2) I have installed WAMP 5 in my localhost machine.what changes are need in configuration file.? 3) what POP3, MIME, etc is required ? Any more information to complete this task please welcome. Overall i want to use mail() in WAMP5 and it should be delivered.


ali_ggl

Hello dear i am also facing the same issue when u got the solution plz do tell me also
regards
ali.


I want to know what configuration changes are required in Local machine to use mail (); function in Localhost to delivered on internet.
1) what is necessary to install and configure?

2) I have installed WAMP 5 in my localhost machine.what changes are need in configuration file.?

3) what POP3, MIME, etc is required ?

Any more information to complete this task please welcome.

Overall i want to use mail() in WAMP5 and it should be delivered.



veerumits

Little bit i got the idea to send the email from Local WAMP to Internet
Step are required:
1.Web server -installed and configured to accept the Request and response.
2. Mail server -you must be installed mail Server you can installed it from control panel -> add remove program -> add remove windows component -> installed IIS(Mail server-SMTP, etc).
3.
use as it is like in php file

<?phpif(isset($_REQUEST['Submit'])){ @extract($_POST); $subject=$subject; $msg="Name:".$name."n"."Email:".$email."n"."Message:".$msg;$to="yourmail@yahoo.com"; $headers .= "Reply-to: $headers4n";$headers .= "From: $emailn";$headers .= "Errors-to: $headers4n"; if(mail("$em","Query!!!","$msg n n Site Admin","$headers")) { $massage1="<center><font face='Verdana' size='2' ><b>THANK YOU</b> <br>Your email has been sent successfully..</center>"; } else{ echo " <center><font face='Verdana' size='2' color=red >There is some system problem in sending login details to your address. Please contact Site Admin. <br></center></font>"; }} ?><table width="99%" border="0" align="center" cellpadding="0" cellspacing="5" bgcolor="#CCCCFF"> <form method="post" action="Contactus.php" enctype="multipart/form-data" name="form" > <tr> <td width="27%" align="right" >Name<span >*</span> </td> <td width="73%" align="left"><input name="name" type="text" id="name" maxlength="32" /></td> </tr> <tr> <td align="right" >Email<span >*</span> </td> <td align="left"><input name="email" type="text" id="email" maxlength="32" /></td> </tr> <tr> <td align="right" >Subject<span > *</span></td> <td align="left"><input name="subject" type="text" id="subject" maxlength="32" /> </td> </tr> <tr> <td align="right" >Message<span > *</span></td> <td align="left"><label> <textarea name="msg" cols="30" rows="10" id="msg"></textarea> </label></td> </tr> <tr> <td align="right" > </td> <td align="left"><label> <input type="submit" name="Submit" value="Submit" /> </label></td> </tr></form></table>
you may try it practically i am not gone to through this way i just read it from book.
what exactly it works or not please go ahead.
thanks

iGuest

Rubbing out oneHow To Send Email From Local Wamp To InternetBefore time began, there was...The Cube. We know not where it comes from, only that it holds the power to create worlds and fill them with life. That is how our race was born. For a time we lived in harmony, but like all great power, some wanted it for good...Others for evil. And so, began the war. A war that ravaged our planet until it was consumed by death. And the Cube was lost to the far reaches of space. We scattered across the galaxy, hoping to find it and rebuild our home. Searching every star, every world. And just when all hope seemed lost, message of a new discovery drew us to an unknown planet called...Earth. But we were already too late.-reply by Optimus Prime

Panterapax

I think you are wrong. Let's discuss it. Write to me in PM, let's talk .... Very good phrase

--------------------------------------------------------------------

????

Posted Image

 

 

Your IP ... The operating system ... and browser


8ennett

There is another method to sending email from a local server without having to install an smtp server on your machine as well. If you have an account with an online smtp server (GMail for instance) and have a valid username and password for this server then you can download and install the PEAR Mail library for php.Once you have downloaded the PEAR Mail library you can then follow the instructions outlined on the PEAR website for sending mail through an smtp server, you can also use smtp servers with ssl encryption using PEAR.

 

http://pear.php.net/package/Mail/redirected/

 

This will definately help if you are behind a blocked firewall or router without an open smtp port.


mrdee

They are not explaining much on the PEAR ite, not at first glance anyway, are they?

(Mind you, it might be my ignorance causing me to say that).

 

Anyway, I am using XAMPP on my local machine, in order to run an intranet within my home, where I can share data with my wife to help me set up appointments, payment details etc. and at the same tiem (being on an intranet) protect it all from preying eyes from the outside world.

 

My version of XAMPP also includes Mercury, an email module, which, it appears, was made by the makers of Pegasus Mail.

 

I have already set up mercury so that i can exchange emails internally (intranet email which does not leave the building at all), but it would be necessary for me to be able to send email from the intranet too, eg. for sending reminders to slow payers, announce changed appointments, or communicate about new ones etc.

 

And, yes, I do have my own email addresses with proper ISPs, but since the whole business system is posted on our local intranet, I need to be able to send emails directly from my database system.

 

However, at the XAMPP forum itself, an issue (and a solution) for that are mentioned, but it does not seem to do the trick for me.

 

The forum advises people to do the following:

 

[mail function]

; For Win32 only.

; http://forums.xisto.com/no_longer_exists/

SMTP = localhost

; http://forums.xisto.com/no_longer_exists/

smtp_port = 25

 

; For Win32 only.

; http://forums.xisto.com/no_longer_exists/

;sendmail_from = postmaster@localhost

 

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").

; http://forums.xisto.com/no_longer_exists/

sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

 


i have set all the parameters the way they describe it, but that still does not do the trick for me.

When I send (or try to anyway) an email to an address outside the intranet (localhost), i keep getting the well-known MAILER DAEMON message that the message could not be delivered.

 

Emails within localhost, however, get sent and received with no problem.

 

I have also tried to replace the bit ";sendmail_from = postmaster@localhost" with my own email address, but that still makes no difference at all.

 

Is there anyone here who knows a bit more about this, or who is knowledgeable in XAMPP/Apache/PHP/Mercury, so i can get this problem sorted?

 

 

Obviously, any solution which solves the problem without using Mercury (as in the original opening post) would be welcomed.



VIEW DESKTOP VERSION REGISTERGET FREE HOSTING

Xisto.com offers Free Web Hosting to its Members for their participation in this Community. We moderate all content posted here but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2001-2019 by Xisto Corporation. All Rights Reserved.