Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,209,382 members, 8,005,868 topics. Date: Monday, 18 November 2024 at 12:20 PM |
Nairaland Forum / Science/Technology / Webmasters / Smtp Mail Not Sending (1397 Views)
Solution To Sms Sending Failed Unit (bulk Sms Website) / Webmail Not Sending To Yahoomail / SMTP Server: How Do I Unblock A Blacklisted IP Address? (2) (3) (4)
Smtp Mail Not Sending by pagolina: 1:42pm On Mar 01, 2010 |
help pls!! have been trying to integrate smtp mail on my site with the code below, but yet is not sending why? check the code: require_once "Mail.php"; $from = "admin <support@mydomain.net>"; $to = "$name <$mail>"; //variable that contains receiver name and email $subject = "thank you"; $body = "Hi,\n\nThank you, Your Registration with us is Successfull \n\nTo activate your account click here "; $host = "mail.mydomain.net"; $username = "support@mydomain.net"; $password = "password"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject); $smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { echo("<p>" . $mail->getMessage() . "</p>" } else { echo("<p>Message successfully sent!</p>" } ?> |
Re: Smtp Mail Not Sending by Nobody: 9:03pm On Mar 01, 2010 |
what is the error message being returned? if there is an error message, you can paste it on google and see what happens. and come and post it back here as well. |
Re: Smtp Mail Not Sending by pagolina: 10:25am On Mar 04, 2010 |
No error message at all ! |
Re: Smtp Mail Not Sending by Nobody: 5:17pm On Mar 04, 2010 |
Now, let us make it less complex. I use pear alot myself at one time, but for now, i have left it alone on the pear tree. I know sometimes it is difficult to debug pear if you are not too used to it, especially if you cannot build pear modules. So use phpmailer 5, search for it, i know it is somewhere on sourceforge or use this link if it works - http://phpmailer.codeworxtech.com/ With phpmailer 5, you can configure it easily to use smtp. Let me know how it goes. Meanwhile, you can test out your smtp account on outlook express or microsoft outlook and see if it is actually working. then come back here and give us feedback, or faster, send me an email |
Re: Smtp Mail Not Sending by Nobody: 2:27am On Mar 05, 2010 |
IT THE HOSTING PROVIDER. THEY DISABLE SMTP. |
Re: Smtp Mail Not Sending by Nobody: 5:14am On Mar 05, 2010 |
that is what i am tryin to find out. 1. If you make use of outlook express and still does not send, then that means it is your webhost that blocks it. 2. If outlook sends, then it is most likely your pear that is giving problems, that is why i asked you to try phpmailer 5 I am lookin at the possibilities, that was why i gave you those steps in my previous post. |
Re: Smtp Mail Not Sending by pagolina: 3:40pm On Mar 11, 2010 |
dhtml i have tested it on outlook is working fine |
Re: Smtp Mail Not Sending by pagolina: 3:47pm On Mar 11, 2010 |
i also try to use phpmailer 5 but maybe am having problem on installing phpmailer 5 because when testing the installation with <?php require("class.phpmailer.php" $mail = new PHPMailer(); ?> i received this error message Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in c:\phpdev\www\cashtree\register\class.phpmailer.php on line 53 Fatal error: Cannot instantiate non-existent class: phpmailer in c:\phpdev\www\cashtree\register\findout.php on line 6 line 53 contain : public $Priority = 3; if the phpmailer work, i would have stick to it for now while working on the order one |
Re: Smtp Mail Not Sending by Nobody: 6:24pm On Mar 11, 2010 |
Now there is phpmailer 4 also. Try which version is working fine. Meanwhile, in those php mailers, there are some examples that come with them in the folder. One of those examples is for smtp. Some servers will deny you from sending mails directly with the php mail function, but will still allow sending mails thru smtp options. meanwhile get the version of php you are using. you can try something like: version.php <?php phpinfo(); ?> that should display your php version |
Re: Smtp Mail Not Sending by Th0mas: 4:52pm On Nov 12, 2013 |
Welcome to www.rdpsh0p.com BIG UPDATE ALL RDP ITS FRESH and ALL TOOLS FRESH ++++++++==========www.rdpsh0p.com=========++++++++++ We Have: RDP UNITED STATES 2003-07-08 RPD EU RDP WORL WIDE DHL MATCH ACC OVERSTOCK EBAY ACC UPS FEDEX ACC SHELL MAILER WEBMAIL C PANEL SHELL PAYPAL ++++++++==========www.rdpsh0p.com=========++++++++++ ETC ETC...... ALL FOR YOU HACKERS WELCOME www.rdpsh0p.com [b][/b] |
Re: Smtp Mail Not Sending by honestseller34: 11:24am On Jan 03, 2014 |
Daily Professional Tools For Sale, 100% Trust !!!
|
Re: Smtp Mail Not Sending by toolsshop65: 11:58pm On Jan 06, 2014 |
TRUSTED WORKING TOOLS FOR SALE! RDP ADMIN+AMS WEBMAIL SMTP CPANEL USA LEADS EUROPE LEADS ASIA LEADS AFRICA LEADS PAYPAL ACCOUNTS VERIFIED CREDIT CARD C99 SHELL PHP MAILER SPYWARES [ATTACHMENT VIRUS FOR ALIBABA] DATING LOGIN SHOPPING SPAMMING SERVICE CONTACT ME FOR BUSINESS toolsshop65@yahoo.com |
(1) (Reply)
Website Templates, Logo Softwares, Seo & E-marketing Softwares For 2k / NIIT Or Aptech / Top 10 New Nigerian Blogs You Must Visit
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 19 |