Log in

View Full Version : Email problem


sofaman
11-25-2006, 07:14 PM
Hi,

I'm having problems with my SMTP saying

The mailing function returned an error while trying to send the mail.
The following errors were outputted by PHP when attempting to send mail:


Warning: fsockopen() [function.fsockopen]: unable to connect to mail.clubvauxhall.net:25 in /includes/class_mail.php on line 599

Warning: Unable to connect to SMTP server in /includes/class_mail.php on line 581


so I tried normal php(). That works fine but the email come from 'clubvauxhall@hostcompany.com' not 'webmaster@clubvauxhall.net'

I did a search on my host comapny and came up with this
Why do e-mails from my webpage come from < username > @ < host## > .host.com when I have specified otherwise?


Problem
Why do e-mails from my webpage come from < username > @ < host## > .host.com when I have specified otherwise?

Solution
This is because our servers require you (or your script) to use a properly formatted, valid From: header in your email. If the From: header is not formatted correctly, empty or invalid our system will change the from address to be <username>@<host##>.host.com. To stop this, you must change the script you are using to correctly use a valid From header.

Examples of headers that should work would be:
From: user@domain.com
From: <user@domain.com>
From: "name" <user@domain.com>

Examples of headers that will NOT work:
From: "user@domain.com"
From: user @ domain.com

Any idea's on the STMP or what file/setting I need to change to webmaster@clubvauxhall.net

cheers, sofa