Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mail function but no email sent

Status
Not open for further replies.

Grey123

Programmer
Joined
Mar 13, 2004
Messages
3
Location
GB
i am a noob tbh, i have been trying to use the mail function..

and cannot get it to work, i was wondering if anyone could give me a hand on this...

my setup is:

ISP: ntlworld, pop.ntlworld.com, smtp.ntlworld.com
my ISP is ntl : smpt.ntlworld.com, pop.ntlworld.com
my php version is: php-4.3.4-Win32
Apache version: 2.0.43(Win32)
i am also behind a router: netgear

mail($email_address, $subject, $message,
"From: MyDomain Webmaster<admin@mydomain.com>\n
X-Mailer: PHP/" . phpversion());
 
What are the values of the PHP runtime configuration settings "SMTP" and "sendmail_from" on your installation?

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
[mail function]
; For Win32 only.
SMTP = smtp.ntlworld.com

; For Win32 only.
;sendmail_from = me@test.com
 
i jus tried that to no avail, any other idea's, gettin really fustrated now tbh...
 
PHP's mail() function returns a value. What is it returning?

It could also be a problem with your ISP's mail server rejecting the message due to missing/malformed headers.

Have you tried using PHPMailer?

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top