I have a form on my website which is supposed to subscribe a user to a mailing list. It works fine, I tested it and sent mail to myself instead of the mailing list, so i decided to change it to the real address of the mailing list and everything should work out. Right? Wrong. Here is my code,
mail("list-subscribe@mydomain.com","","","From: $listemail\r\n");
Where $listemail is the email address of the subscriber. If I manually send a message to list-subscribe@mydomain.com, I get a confirmation email sent to me. However, when i send the mail off using my form, which recieves no errors, I don't get a confirmation, and it's as if it was never sent! The mailing list manager is ezmlm. Is there some other extra parameter I need to send in the mail command to make it recognize the email address? It really irks me because I know the form code works when sending to myself.
Thanks in advance
isamu