Jump to content

mail(function) error, maybe has something to do with my service provider?


Recommended Posts

Hi all,

 

Saw a very similar thread about this a couple days ago but wasn't sure if it was resolved..also had some additional questions of my own..

 

When I test out my form and click submit in the browser, the information 'echoed' to the user is supposed to be routed to an email to myself, the code for which I created in PHP

 

mail($to, $subject, $msg, 'From:' . $email);

 

However I get this error message:

 

 

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:\Program Files\Apache Software Foundation\Apache2.2\htdocs\aliens\report.php on line 44

 

On my Windows machine, at my house (this is where I'm doing my site) I have in my php.ini file:

 

[mail function]

; For Win32 only.

SMTP = smtp.west.cox.net

smtp_port = 25

 

 

; For Win32 only.

;sendmail_from = me@example.com

 

I don't know if there's a semicolon error in this, or an error in what I set my SMTP as ( Cox is the service provider) or my port?

 

Also, the sendmail_from...not sure what I put in there either..

 

I'd rather not mess with the scripting ini set stuff yet unless absolutely necessary and all else fails, as I'm still at the beginning of learning this stuff

 

thanks!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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.