PDA

View Full Version : Universal Email and testing server


webmaster359615
03-24-2009, 03:54 PM
A lot of tho WebAssist Web Developer Suite extensions suggest a testing server, so I set one up on my local machine using XAMPP. Everything works just great except Universal Email. For some reason, errors like the following pop up on top of the pages (the first is from a Contact Form Solutions Pack page):

Warning: mail() [function.mail]: Failed to connect to mailserver at "yourmailserver.yourdomain.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\pd\httpdocs\WA_Universal_Email\Mai l_for_Linux_PHP.php on line 257

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\pd\httpdocs\WA_Universal_Email\Mai l_for_Linux_PHP.php:257) in C:\xampp\htdocs\pd\httpdocs\contact.php on line 34

*

AND THIS

*

Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in C:\xampp\htdocs\pd\httpdocs\WA_Universal_Email\mai l_PHP.php on line 254

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\pd\httpdocs\WA_Universal_Email\mai l_PHP.php:254) in C:\xampp\htdocs\pd\httpdocs\orderform.php on line 53

*

I should note that the mail seems to be working fine when I use the test form provided in the XAMPP interface.

deno1965
05-01-2009, 01:04 AM
I'm running xampp as well, but I believe it does'nt include a mail server. There are softwares out there to add mail to your local machine. Some of the errors you mentioned are caused because it is looking for a server that's not there. (Mail) Anytime you put a email on a page, you have to name your SMTP server. (yourmailserver@yourdomain.com) has to be filled in with the proper setting.

Dean

Ray Borduin
05-01-2009, 05:59 AM
Dean is correct. These would appear to be issues with your smtp email server configuration and not problems with the UE code.

tom92909
05-01-2009, 07:34 AM
Just to throw my 2 cents in...

I typically use the real live server for my development, but I do this all inside a secure testing sub directory. That way I'm assured that I'm getting full access to the true environment for the actual domain.

Stan
05-18-2009, 09:22 AM
I'm running xampp as well, but I believe it does'nt include a mail server. There are softwares out there to add mail to your local machine. Some of the errors you mentioned are caused because it is looking for a server that's not there. (Mail) Anytime you put a email on a page, you have to name your SMTP server. (yourmailserver@yourdomain.com) has to be filled in with the proper setting.

Dean

In general you can't use a mail server at another server location because it will require authentication. There are a couple of ways around this but the easiest solution is what Tom suggests.

Jenny I
05-19-2009, 03:44 AM
I have just used Tom's method and managed to get it to work now, thanks.

Just for knowledge sake, how would you configure to get it to work on a local/network testing server.

Jenny I
05-19-2009, 03:46 AM
Just to throw my 2 cents in...

I typically use the real live server for my development, but I do this all inside a secure testing sub directory. That way I'm assured that I'm getting full access to the true environment for the actual domain.

I have just used your methos and it worked! My only question is what do you mean by "secure testing sub directory"? How do I make the sub directory secure?

Jenny I
06-01-2009, 05:58 AM
Hello,

I was trying to us UE on my local testing server but I could not get it to work. Based on the suggestions here I have had to use my remote server and UE works fine here. The problem is I am still developing the whole site but when I use dreaweaver to preview my site pages it uploads onto the server. This means that the public can view my unfinished site.

Is there a way you can test on remote server without people being able to view the site?

Or

Is there a way UE can work on testing server?