Forum Moderators: phranque

Message Too Old, No Replies

Mail to problem

         

llsspratt

10:22 pm on Jul 27, 2003 (gmt 0)

10+ Year Member



I'm new to PHP so this question might seem stupid, but I wrote a program that information for a on-line job application and pass it to a e-mail form. The problem is when I submit the form I get the error:"Warning: Failed to connect to mailserver, verify your "SMTP" setting in php.ini in c:\phpdev\www\mail_hr.php on line 13
Error". I need to know where to set the SMTP values so I can complete this tutorial

khuntley

11:13 pm on Jul 27, 2003 (gmt 0)

10+ Year Member



Do you have the following in the php.ini file:

SMTP = localhost

or

SMTP = Your ISP's SMTP server

Actually, for that matter give us what you have in your php.ini related to SMTP or sendmail.

Kevin

llsspratt

1:01 am on Jul 28, 2003 (gmt 0)

10+ Year Member



Kevin thank you for your reply if you could e-mail me I will sent you the php.ini so you can help me out:
snipped

Thanks again
LLoyd

[edited by: DaveAtIFG at 1:14 am (utc) on July 28, 2003]
[edit reason] No specifics please! [/edit]

llsspratt

1:26 am on Jul 28, 2003 (gmt 0)

10+ Year Member



Kevin

The two SMTP references on my PHP.INI are as followed:

DEFINE('SMTP_EMAIL','me@mine.com');
DEFINE('SMTP_HOST','mail.mydomain.com');

are these the two that I need to change?
the "SMTP_EMAIL" should be my e-mail? and
the "SMTP_HOST" should be the STMP provider from mediacom?

llsspratt

2:55 pm on Jul 28, 2003 (gmt 0)

10+ Year Member



Kevin

Thank you for your help. I finally found where you were talking about and it worked

Many Thanks
Lloyd