Re: PEAR mail problem
| From: | brian | Date: | Sun, 27 Apr 2008 19:55:11 +0000 |
| Subject: | Re: PEAR mail problem | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-28839@lists.php.net to get a copy of this message | ||
mandar.b wrote:
Hi, I am also facing similar problem.Similar to what?
Following is my script. I found that send method fails.Fails how? Do you get an error msg? You're using SMTP - is port 25 blocked at your ISP? Do have an MTA running? Have you configured a relay host?
Please help me to solve this issue. <?php require_once "../PEAR/Mail.php"; $from = "Daniel <info@crewnewmexico.com>"; $to = "Mandar <mandar.b@codewalla.com>"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; $host = "mail.secureserver.net"; $username = "info@crewnewmexico.com"; $password = "spicyrice";You might want to consider changing that password.