Re: Problems with mail
| From: | Chris | Date: | Mon, 02 Apr 2007 22:30:35 +0000 |
| Subject: | Re: Problems with mail | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-251955@lists.php.net to get a copy of this message | ||
Mário Gamito wrote:
Hi, I have this very straight forward code to send an e-mail: $subject_users_subscription_confirmation = "Subscription confirmation"; $message_users_subscription_confirmation = 'Please, click this link to confirm your subscritpion: http://www.telbit.pt/subscribe-confirm.php?email=' . $email . '&conf=' . $barfles; mail($email, $subject_users_subscription_confirmation, $message_users_subscription_confirmation); The three variables are ok, as i debuged them with prints, but no mail is sent. If i do a test with mail('gamito@gmail.com', 'Hello', 'Hello'); then the mail is sent ok!So mail() works, which means you're doing something wrong or your host is blocking the email or spam filters are catching it. If you're on a test machine, watch the mail logs and see if that gives you any clues about what's going on. -- Postgresql & php tutorials http://www.designmagick.com/