Welcome Guest!

If you do not have an account yet on The Web Squeeze forums, please Register! It's FREE and there are many benefits:

  • Receive Fast Advice
  • Learn Programming Languages
  • Get Professional Website Reviews
  • Quick Troubleshooting Assistance

> Problems With Dolphin Mail Sending

This is a discussion on Problems With Dolphin Mail Sending, within the PHP section. This forum and the thread "Problems With Dolphin Mail Sending" are both part of the Programming Your Website category.

 
Reply to this topicStart new topic
> Problems With Dolphin Mail Sending, PHP based program, so we can fix the code
thesealportaltea...
post Mar 14 2008, 01:45 PM
Post #1


Rapid Squeezer
****

Posts: 347
Joined: 14-February 08
From: The US, state of New York.

I get this error:

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\personja\test\inc\utils.inc.php on line 425

as well as a series of 2 more errors, how do I change the localhost to k2.secureserver.net ?

I have XAMPP, with the latest of everything.

I changed PHP.ini & PHP5.ini from localhost to k2.secureserver.net, but it still says that error.

Any help would be appreciated!

This post has been edited by thesealportalteam: Mar 17 2008, 09:10 AM


--------------------
Got spare time? Visit My Page.
"When you know something should work one way,
but you change it and it no longer works... Who's fault?"


Go to the top of the page
 
+Quote Post
Rakuli
post Mar 14 2008, 02:42 PM
Post #2


Professional Squeeze
Group Icon

Posts: 1,354
Joined: 13-February 08
From: Catching the squeezed drips downunder.

Silly question, but did you restart the server? I know I had a headache once setting up SMTP because I didn't restart and get the new .ini file loaded.


--------------------
Luke Dingle . com

Turn Over a Playful Leaf on Web Design -- read about the javascript cat
Go to the top of the page
 
+Quote Post
thesealportaltea...
post Mar 17 2008, 07:28 AM
Post #3


Rapid Squeezer
****

Posts: 347
Joined: 14-February 08
From: The US, state of New York.

QUOTE (Rakuli @ Mar 14 2008, 03:42 PM) *
Silly question, but did you restart the server? I know I had a headache once setting up SMTP because I didn't restart and get the new .ini file loaded.


una-fortunately. Its hosted by go-daddy which means I need to redirect all localhost smtp to k2.secureserver.net. Sad isn't it?

I'll restart it - again. For the last time I hope.

This post has been edited by thesealportalteam: Mar 17 2008, 07:29 AM


--------------------
Got spare time? Visit My Page.
"When you know something should work one way,
but you change it and it no longer works... Who's fault?"


Go to the top of the page
 
+Quote Post
Jason
post Mar 17 2008, 08:04 AM
Post #4


Master of the Universe
Group Icon

Posts: 2,497
Joined: 15-February 08
From: London, England

The problem is with your server, not the script. If the problems persist phone up your host and ask for some guidance on getting it working.


--------------------
Go to the top of the page
 
+Quote Post
thesealportaltea...
post Mar 17 2008, 08:22 AM
Post #5


Rapid Squeezer
****

Posts: 347
Joined: 14-February 08
From: The US, state of New York.

I control the server so give me some hints to whats the problem


--------------------
Got spare time? Visit My Page.
"When you know something should work one way,
but you change it and it no longer works... Who's fault?"


Go to the top of the page
 
+Quote Post
Jason
post Mar 17 2008, 09:02 AM
Post #6


Master of the Universe
Group Icon

Posts: 2,497
Joined: 15-February 08
From: London, England

Create a simple mail script. If it doesn't send this will confirm the problem is with the server.

Next thing to do is look at your php.ini file and confirm that the mail settings are correct.


--------------------
Go to the top of the page
 
+Quote Post
Rakuli
post Mar 17 2008, 09:06 AM
Post #7


Professional Squeeze
Group Icon

Posts: 1,354
Joined: 13-February 08
From: Catching the squeezed drips downunder.

Seal appears to have done that based on his first post...

The fact that the error is saying SMTP is pointing to localhost flags that the ini file is not loading with the new settings.

@ Seal, any change after the latest restart?


--------------------
Luke Dingle . com

Turn Over a Playful Leaf on Web Design -- read about the javascript cat
Go to the top of the page
 
+Quote Post
thesealportaltea...
post Mar 17 2008, 09:11 AM
Post #8


Rapid Squeezer
****

Posts: 347
Joined: 14-February 08
From: The US, state of New York.

No, is there anyway to force the ini to go in?


Is the error, I'll post the ini
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\personja\test\inc\utils.inc.php on line 425

This post has been edited by thesealportalteam: Mar 17 2008, 09:12 AM


--------------------
Got spare time? Visit My Page.
"When you know something should work one way,
but you change it and it no longer works... Who's fault?"


Go to the top of the page
 
+Quote Post
thesealportaltea...
post Mar 17 2008, 09:14 AM
Post #9


Rapid Squeezer
****

Posts: 347
Joined: 14-February 08
From: The US, state of New York.

CODE
[sendmail]

smtp_server=k2smtpout.secureserver.net

; smtp port (normally 25)
smtp_port=25

default_domain=personja.com

; log smtp errors to error.log (defaults to same directory as sendmail.exe)
; uncomment to enable logging

error_logfile=error.log

; create debug log as debug.log (defaults to same directory as sendmail.exe)
; uncomment to enable debugging

;debug_logfile=debug.log

; if your smtp server requires authentication, modify the following two lines

auth_username=
auth_password=

; if your smtp server uses pop3 before smtp authentication, modify the
; following three lines

pop3_server=
pop3_username=
pop3_password=

; to force the sender to always be the following email address, uncomment and
; populate with a valid email address.  this will only affect the "MAIL FROM"
; command, it won't modify the "From: " header of the message content

force_sender=

; sendmail will use your hostname and your default_domain in the ehlo/helo
; smtp greeting.  you can manually set the ehlo/helo name if required

hostname=


--------------------
Got spare time? Visit My Page.
"When you know something should work one way,
but you change it and it no longer works... Who's fault?"


Go to the top of the page
 
+Quote Post
thesealportaltea...
post Mar 17 2008, 12:24 PM
Post #10


Rapid Squeezer
****

Posts: 347
Joined: 14-February 08
From: The US, state of New York.

FIXED!!!!!

I used the PHP ini_set() to fix the problem.
CODE
ini_Set("smpt","k2.secureserver.net");


--------------------
Got spare time? Visit My Page.
"When you know something should work one way,
but you change it and it no longer works... Who's fault?"


Go to the top of the page
 
+Quote Post
If you found The Web Squeeze to be helpful, please donate so we can keep this site FREE, FRESH, and fortified with Web Design & Development info!
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   9 caminowebmaster 1,177 15th February 2008 - 06:24 PM
Last post by: Jacob
No New Posts   3 c010depunkk 1,604 21st February 2008 - 09:41 AM
Last post by: c010depunkk
No New Posts 3 Sleaklight 1,000 27th February 2008 - 10:26 AM
Last post by: Sleaklight
No New Posts 10 Popje 1,491 2nd April 2008 - 07:19 PM
Last post by: jamesicus
No New Posts 2 xkatx21x 874 27th February 2008 - 09:51 PM
Last post by: xkatx21x