Failed to send email using mail()
Posted: Fri Jul 20, 2007 6:31 am
Hi, all.
These days I have been trying to use PHP to send emails but failed.
I have Mercury&Apache installed on my PC. Since I have not acquired a domain name yet, IP address is present in the email address, that is, admin@x.x.x.x(my IP). Though I can successfully send mails to myself using the email address admin@x.x.x.x as both the sender and recipient, I cannot send out emails to others such as someone@somedomain.com. What is more, I use the simple PHP built-in function mail() to send emails.
Now I am wondering whether I must have my own domain name before sending emails to others.
Can I send out emails using my own email server Mercury without having to get a domain name?
If not, how to send emails using an existing email server in which I already have an email account?
Thanks in advance.
BR,
Pondering
These days I have been trying to use PHP to send emails but failed.
I have Mercury&Apache installed on my PC. Since I have not acquired a domain name yet, IP address is present in the email address, that is, admin@x.x.x.x(my IP). Though I can successfully send mails to myself using the email address admin@x.x.x.x as both the sender and recipient, I cannot send out emails to others such as someone@somedomain.com. What is more, I use the simple PHP built-in function mail() to send emails.
Now I am wondering whether I must have my own domain name before sending emails to others.
Can I send out emails using my own email server Mercury without having to get a domain name?
If not, how to send emails using an existing email server in which I already have an email account?
Thanks in advance.
BR,
Pondering