I use WindowsXP. I live in Canada and my ISP is SaskTel. Through telnet command, it showed that they do block port 25.
I am doing a microcontroller project, that connects to a laptop, and I want to send a text when something happens.
PHP file:
Expand|Select|Wrap|Line Numbers
- <html>
- <body>
- <?PHP
- //SUBJECT AND BODY OF EMAIL SHOULD BE LESS THAN 160 CHARACTERS TOTAL
- $subject = "Text Message Subject";
- $message = "Text Message Content";
- //SENDS TEXT MESSAGE TO 509-863-4212
- mail("5098624212@sms.sasktel.com",$subject,$message,"From: email@site.net");
- ?>
- </body>
- </html>
****
I know the email is right, as i sent a text to my phone from my hotmail account.
I do not understand webservers well.. currently I am using "EasyPHP", and have my .php file in a directory, and using the path
http://localhost/test/sendtext.php
I get an error saying "mail function isnt working with port 25, check your SMTP ..."
I have read many forums, and they all say that my ISP has it blocked. I also searched long and hard for how to get around this issue. Is it actually possible? Changing ISP is not an option. Can someone point me in a good direction with some handy tips? Anything, I am very exhausted at this point
Thank you,
John