hrce.tk Posted March 7, 2017 Posted March 7, 2017 i tried to use php mail() function in booking page of my add on domain "flexphysiotherapy.in" the problem is i can send mail to any mail address exept *@flexphysiotherapy.in i google'd and foud the following solution on yandex support site as i use yandex mail for domain for handling my e-mails for this domain This problem occurs because the server hosting your site also provides email services for your domain. So when you send a message from your site, it doesn't go to the Yandex servers, as per your MX settings, but to the local mail server set up by your hosting provider. To fix this, turn off email services on the hosting provider's side. Then email messages will be sent to our servers. Alternatively, we recommend that you set up outgoing email through our SMTP server - smtp.yandex.ru, using port 465 with SSL encryption and mandatory authentication on the server. So you'll need to indicate, in the settings, the full address of the mailbox that you'll be using to send. I do not want to use smpt server with mail() as i'm not grate with coding in java so any help to turn off e-mail services would be grate thank you in advanceM H R V K REDDY
wolstech Posted March 7, 2017 Posted March 7, 2017 Our server prioritizes delivering mail locally when possible. If mail is sent to a domain hosted here, it never leaves our server by design. I'm not sure if you can change this...Krydos or Byron would know.
hrce.tk Posted March 7, 2017 Author Posted March 7, 2017 ok thank you for the reply i tried using smtp in my form using pear but i get "Fatal error: Class 'Mail' not found in /home1/hrce/php/Mail/mail.php on line 51" after searching online for the error i foud that "Please make sure that your php.ini's include_path points to the PEAR directory. If you installed PEAR through the console and had PEAR automatically add its path to php.ini, remember that the added include_path will be available after you have restarted your web server." so can you please update my php.ini file
wolstech Posted March 7, 2017 Posted March 7, 2017 Last I checked, we didn't support PEAR. I'll escalate this because of your odd mail configuration...as far as I'm aware, you're the only one who's trying to use an external mail server for their domain's email.
Krydos Posted March 8, 2017 Posted March 8, 2017 the problem is i can send mail to any mail address exept *@flexphysiotherapy.inThis is because that domain is hosted by us, so emails sent to a domain hosted by us don't need to leave the server. To fix this, turn off email services on the hosting provider's side. Then email messages will be sent to our servers.If we did this NO ONE on Tommy would be able to send or receive email.
hrce.tk Posted March 8, 2017 Author Posted March 8, 2017 Ok thanks for the reply @Krydos but i cannot even use the pear mail() to send smpt mail as the problem is "Fatal error: Class 'Mail' not found in /home1/hrce/php/Mail/mail.php on line 51" after searching online for the error i foud that "Please make sure that your php.ini's include_path points to the PEAR directory. If you installed PEAR through the console and had PEAR automatically add its path to php.ini, remember that the added include_path will be available after you have restarted your web server." so can you please update my php.ini file can this problem be solved thanks in advance
wolstech Posted March 8, 2017 Posted March 8, 2017 You can't use the pear mail() because we don't support pear. That error is normal. If you really want to use an external mail server, you should download any of the large number of smtp classes available for PHP that implement the protocol via sockets and use that. Is there a reason you can't use our mail service though (you're the only user we have that has done this)?
hrce.tk Posted March 8, 2017 Author Posted March 8, 2017 Thanks for the reply I use yandex mail as my mail server for the bellow benefits 1) I get 1000 free mail adress.2) For every mail id it get free 10GB yandex disk space and almost other yandex services.3) unlimited mail storage.4) no limit in sending mails (correct me if I'm wrong i read in forms that there is a limit of 50 mails per day in heliohost as replayed by @Krydos)4) I can use custom login page for my mail on my site.5) less load on web hosting server.6) mobile app to check mail on mobile.7) Option to create a registration form and login to it on my own site(of-course i do not use this option) And most important thing is, it is free of cost
wolstech Posted March 8, 2017 Posted March 8, 2017 That's actually not bad...especially for the free price. Here's an example of a PHP mail package that should work with it: https://github.com/PHPMailer/PHPMailer/ They have an example for doing SMTP with it right in the readme.
Recommended Posts