PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi, I am trying to send mail using the mail() function and I am not able to do it. I suspect that I havenot mentioned the SMTP address. The SMTP address is "mail.allhyper.com". I dont know where to give this information within the php code.
sorry there was a problem with the link then but now it works, it doesnot give any error message when I try to send a mail. I dont own the server as I host for free on allhyper.com's server.
So, can I infer that I dont have to set the SMTP? Then, what should be the problem with the mail()?
Hie
I tested your code on my server and it seemed to work fine. I got the mail I had sent. However, check if you are applying and \n in the Subject.
Also check for html content in your message. Coz if there is html content then, you will have to specify the headers for the mail.
The php manual mail function has info to send the html mail headers. You can check that out .