how can I check that?
php and sendemail
telnet to the SMTP server on port 25
sorry for my ignorance - I mainly do windows programming.
If I have the ip address and username and password -- how would I telnet to test the smtp?
to test if there's a server response just pop open a dos prompt, or go into Start -> Run and type
telnet smtp.mail.yahoo.com 25
but obviously your server - see if there's a response message - type quit to get out.
If the server requires password and user then they have to be base64 encoded and you'll have to write your own sendmail routine, or just grab a copy of the Richard Heyes one.
Its the same in linux too
telnet "smtp server" 25
can I test this from my machine. (windows). The actual problem is on the server where this form is hosted? Will it help to telnet from my machine?
Any other way to assure that the emails are all being sent?
No .. u have to test it on that machine. you can try asking them if there are any restrictions.
The Only other option ot make sure that mails have been sent is to check the status returned by the mail function. if its 0 then try sending it at a later time.
I was never able to do the above settings.
Is there any way for me to call a function on another server that sends the mail? (By using an include file?)
Well i dont think that can be done. But you can send a http request to another script in the other server using fopen and send the required data in the URL.
How?
fopen("http://someserver/website.php?msg=some message&to=toAddress&from=fromAddress", "r");
is reading enough (the 'r').
For some reason it is not working.
It's telling me "Warning: fopen" and the line on the server
can ya paste the fopen code and the error message
esthera are you on a shared server?
If your e-mails are not getting sent out ask your webhost to look into it. Usualy your server is managed by them. It is not your job to make sure that these things work correctly.
no problem is that we switched to a server that doesn't support mail and my client wants me to send the mail through another server. I am playing with redirecting back and forth now.
I need to read more before I post! :queasy: