Re: Problems with mail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx', '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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux