Jump to content
xisto Community
veerumits

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

Recommended Posts

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.

Edited by veerumits (see edit history)

Share this post


Link to post
Share on other sites

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.


Share this post


Link to post
Share on other sites

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" class="form_text">Name<span class="price_text">*</span> </td>				<td width="73%" align="left"><input name="name" type="text" class="form_text_area" id="name" maxlength="32" /></td>			  </tr>			  <tr>				<td align="right" class="form_text">Email<span class="price_text">*</span> </td>				<td align="left"><input name="email" type="text" class="form_text_area" id="email" maxlength="32" /></td>			  </tr>			  <tr>				<td align="right" class="form_text">Subject<span class="price_text"> *</span></td>				<td align="left"><input name="subject" type="text" class="form_text_area" id="subject" maxlength="32" />				</td>			  </tr>			  <tr>				<td align="right" class="form_text">Message<span class="price_text"> *</span></td>				<td align="left"><label>				  <textarea name="msg" cols="30" rows="10" id="msg"></textarea>				</label></td>			  </tr>			  <tr>				<td align="right" class="form_text"> </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
Edited by moderator (see edit history)

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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

Edited by moderator
translated from Russian to English (see edit history)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.