I m working on a complaint management site and one of the requirement is sending a email to the administrator.
I changed the php.ini file now it looks like
Expand|Select|Wrap|Line Numbers
- [mail function]
- SMTP = my outgoing smtp mail server
- sendmail_from = myid1@gmail.com
- ; For Unix only. You may supply arguments as well (default: 'sendmail -t -i').
- sendmail_path = /usr/local/sbin/sendmail
Expand|Select|Wrap|Line Numbers
- <?php
- if(mail('myid2@gmail.com', 'Hi', 'Hello'))
- {
- echo('<p>Mail sent successfully 3.</p>');
- }
- else
- {
- echo('<p>Mail could not be sent.</p>');
- }
- ?>
Everything sounds so good till here,but the problem here is that the mail is not getting delivered to myid2@gmail.com(both the email's are valid)
My php version doesnt support getmxrr() so i m not able to check has the mail been delivered to the recipient mail server or not.
I m using
OS: Windows XP Professional Service Pack 2, v.2096 (build 2600)
Php: 4.1.1
Server API: CGI
If any more information is required then please let me know.
Hoping for some quick help!!!
Anyone Please,Thanks In advance.