doctorbill
asked on
php PEAR smtp
I have managed to get my PHP email application working with the PEAR installation on my small business server 2003.
Problem is that it will not work on another server even though all the settings appear correct
The data is not being sent.
Can someone please tell me where on earth the SMTP values are being taken from in the PEAR application (Mail.php)
Problem is that it will not work on another server even though all the settings appear correct
The data is not being sent.
Can someone please tell me where on earth the SMTP values are being taken from in the PEAR application (Mail.php)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I tried this with my own authsmtp settings:
$smtpinfo["host"] = "smtp.server.com";
$smtpinfo["port"] = "25";
$smtpinfo["auth"] = true;
$smtpinfo["username"] = "smtp_user";
$smtpinfo["password"] = "smtp_password";
still not working.
$smtpinfo["host"] = "smtp.server.com";
$smtpinfo["port"] = "25";
$smtpinfo["auth"] = true;
$smtpinfo["username"] = "smtp_user";
$smtpinfo["password"] = "smtp_password";
still not working.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have tried using my "authsmtp" account which is usually allowed from any network. The email is still not being sent
ASKER
Certainly helped me to go forward
see if you can connect through telnet to the SMTP server from the remote machine
eg...
telnet smtp.company.com 25
EHLO remotehost.company.com
if the screen stays blank or if telnet won't connect, it's a connectivity issue, not an authentication issue.
eg...
telnet smtp.company.com 25
EHLO remotehost.company.com
if the screen stays blank or if telnet won't connect, it's a connectivity issue, not an authentication issue.
similarly, you can install a mail client on the "remote" machine...
and verify you can send email from the mail client...
don't stress over doing it in PHP until you verify it's actually working as intended.
and verify you can send email from the mail client...
don't stress over doing it in PHP until you verify it's actually working as intended.
you already accepted my solution but i figured i'd give u those tips anyways lol
ASKER