xux Posted October 30, 2006 Share Posted October 30, 2006 Hi,I want to send newsletter to all the emails in a database.I can I integrate that into this codeCode:<?php $message = "<img src=\"http://www.smeresources.org/images/newsletter-header.jpg\" alt=\"Signature\"><h1>Testing Your Newsletter</h1>"; // Set some parameters $toAddress = "test@yahoo.com"; $subject = "Test Subject"; $headers = "Content-type: text/html\n\n"; // Try to send the message $success = mail($toAddress,$subject,$message,$headers); if($success){ print "Newsletter Sent"; } else{ echo'Newwsletter could not be sent'; } ?>how can i implement integrate it to the codes above.My RegardsXUX Quote Link to comment https://forums.phpfreaks.com/topic/25579-sending-mail-using-emails-stored-in-a-database/ Share on other sites More sharing options...
HuggieBear Posted October 30, 2006 Share Posted October 30, 2006 Give this a try:[code]<?php// connect to your databaseinclude_once('connect.php');// query the database to get all the email addresses$sql = "SELECT email FROM newsletter";$result = mysql_query($query) or die ("Couldn't run $sql: " . mysql_error());// set the constant parameters of the email$headers = "Content-type: text/html\n\n";$subject = "Test Subject";$message = "<img src=\"http://www.smeresources.org/images/newsletter-header.jpg\" alt=\"Signature\"><h1>Testing Your Newsletter</h1>";// loop through the results sending the emailwhile ($row = mysql_fetch_array($result, MYSQL_ASSOC)){ $toAddress = $row['email']; // try to send the message $success = mail($toAddress, $subject, $message, $headers); // print message if($success){ echo "Newsletter sent successfully to $toAddress"; } else{ echo "Newsletter could not be sent to $toAddress"; }}?>[/code]RegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/25579-sending-mail-using-emails-stored-in-a-database/#findComment-116746 Share on other sites More sharing options...
xux Posted October 30, 2006 Author Share Posted October 30, 2006 Thanks for that help,I really appreciate it.But what of if the stuff i want to send have to be inputed from a form like this[code]<?phpinclude('header1.tpl');?> <!-- the contents of the page goes inside the div tag --> <div class="mainContent"> <center><table border="0" cellpadding="4" cellspacing="0"><tr><td> <form action="sendmail.php" method="POST"> <center><strong>Youth Business News</strong></center> <br><br>Topic: <br><input type=text name="header" size=70 > </br></br><textarea name="contents" id="contents" style="width:500px; height:450px"><?php $contents;?></textarea> <br><center><input type="SUBMIT" value="Send" > </center></form></td></tr></table></center>[/code]and my sendmail.php codes are [code]<?php $message= "header.tpl".$contents."footer.tpl";//connecting to database//sending the newsletter to email in the database ?>[/code]the major challenge is getting the inpute statement to this page to be sent.thanksYou have my Highest Regards Quote Link to comment https://forums.phpfreaks.com/topic/25579-sending-mail-using-emails-stored-in-a-database/#findComment-116753 Share on other sites More sharing options...
HuggieBear Posted October 30, 2006 Share Posted October 30, 2006 The help I've given you on the previous project and this one should allow you to answer this question yourself now. If you can't then I guess this is due to a failure of the 'teachings by example' on my part.In your previous project you used $HTTP_POST_VARS to get values from your form, so you should be able to use those again. Get the values from the form and fit the code that I've provided in around it.RegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/25579-sending-mail-using-emails-stored-in-a-database/#findComment-116761 Share on other sites More sharing options...
xux Posted October 30, 2006 Author Share Posted October 30, 2006 Ok,I will get down with the codes and keep you inform.You've been very excellent and am grateful.Maybe I can email a drink in a dark green bottle to you ;D(infact what is the name).Thanks a lot,you have saved me headache.My Highest RegardsXUX Quote Link to comment https://forums.phpfreaks.com/topic/25579-sending-mail-using-emails-stored-in-a-database/#findComment-116767 Share on other sites More sharing options...
HuggieBear Posted October 30, 2006 Share Posted October 30, 2006 No problem, I'm happy to help.If once you've had a go yourself you still can't get it then post back here.RegardsRich Quote Link to comment https://forums.phpfreaks.com/topic/25579-sending-mail-using-emails-stored-in-a-database/#findComment-116775 Share on other sites More sharing options...
xux Posted October 30, 2006 Author Share Posted October 30, 2006 Thanks,but you didnt give the name of the drink :D Quote Link to comment https://forums.phpfreaks.com/topic/25579-sending-mail-using-emails-stored-in-a-database/#findComment-116777 Share on other sites More sharing options...
HuggieBear Posted October 30, 2006 Share Posted October 30, 2006 Sounds like Absinthe or something similar.Huggie Quote Link to comment https://forums.phpfreaks.com/topic/25579-sending-mail-using-emails-stored-in-a-database/#findComment-116781 Share on other sites More sharing options...
xux Posted November 1, 2006 Author Share Posted November 1, 2006 Hi, I have got down to work as you suggested.I wanted to see how the nesletter am sending will look like so am testing it with only my email address.but it was giving me error.here is my code but it is a bit lengthy[code]<?php $message = "<style type=\"text/css\"><!--.style2 { color: #000000; font-weight: bold;}.style4 {color: #000066; font-weight: bold; }.style5 { color: #0000FF; font-weight: bold;}--></style><table width=\"754\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" align=\"center\"><!--ImageLayoutTable--> <tr> <td height=\"107\" colspan=\"2\" valign=\"top\"><img src=\"http://www.smeresources.org/images/newsletter-header.jpg\"></td> </tr></tr> <tr> <td width=\"570\" height=\"2375\" valign=\"top\"><table> <!--LayoutTable--> <tr><td height=\"40\" colspan=\"2\" valign=\"top\" bgcolor=\"#FFFF00\"><span class=\"style2\"> NOVEMBER ISSUE OF YOUTH BUSINESS NEWS </span></td> </tr><tr> <td height=\"70\" colspan=\"2\" valign=\"top\"> <p><span class=\"style5\">Quote of the Month</span><br/> "Most new jobs won’t come from our biggest employers. They will come from our smallest. We’ve got to do everything we can to make entrepreneurial dreams a reality."-Ross Perot, US Industrialist </td> </tr><tr> <td height=\"25\" colspan=\"2\" valign=\"top\" bgcolor=\"#8018cb\"><span class=\"style2\">WELCOME</span></td> </tr><tr> <td height=\"475\" colspan=\"2\" valign=\"top\" cellpadding=\"1\"><p> </p> <p>Welcome to the maiden edition of Youth Business Newsletter (YBN). YBN is published by ww.smeresources.org and supported by CGMIE Consulting Limited. Youth Business News is an online newsletter with a difference. We hope to provide you with information that will set you apart from your contemporaries and help you build the business of your dreams. YBN is a monthly publication with a global outlook. We hope to bring together entrepreneurs of all cadres and ethnicities together to pool information, network and forge formidable relationships. </p> <p>Each month YBN will bring you interesting articles, profiles of young, successful entrepreneurs and details on small business conferences the world over. We will also provide investment tips for the investment savvy alongside books that every entrepreneur ought to read.</p> <p>If you are not subscribed please do so at <a href=\"http://www.smeresources.org\">www.smeresources.org</a></p> <p>We look forward to your comments, contributions, articles, feedback and general information. You can make these available to us at info@smeresources.org. Don't forget to tell others too and even forward the newsletter to them. We hope to build millions of entrepreneurs throughout the world through this medium. </p> <p>We welcome you to Youth Business Newsletter and hope you will have a splendid time reading. </p> <p>Yours Sincerely,</p> <p>Abiodun Ajijola<br /> Managing Director/CEO<br /> CGMIE Consulting Limited</p> <p> </p></td> </tr><tr> <td height=\"30\" colspan=\"2\" valign=\"top\" bgcolor=\"#FFFF00\"><span class=\"style2\">SITE OF THE MONTH</span></td> </tr><tr> <td height=\"95\" colspan=\"2\" valign=\"top\"><p> </p> <p>Each month we bring you a site we find very useful for entrepreneurs the world over. This month we have selected the Kauffman Center for Entrepreneurial Leadership Clearinghouse on Entrepreneurship Education website. For those of you who have never visited the site before you will find it extremely resourceful. Find out more <a href=\"http://www.celcee.edu\">http://www.celcee.edu</a></p> <p> </p></td> </tr><tr> <td height=\"30\" colspan=\"2\" valign=\"top\" bgcolor=\"#8018cb\"><span class=\"style2\">SUCCESSFUL YOUNG ENTREPRENEURS</span></td><tr> <td height=\"152\" colspan=\"2\"> <p> </p> <p>Young and Rich. You got it! These young people are busy executives who have started and built successful businesses. They are dedicated, hardworking and truly inspirational. For those of you who attended the just concluded Youth Employment Summit 2006 in Kenya you know that the theme was 'Unleashing Entrepreneurship …….. Creating Markets'. Youths need to look to entrepreneurship as a major means to ending youth unemployment. Entrepreneurship not only creates jobs for the youths who start the businesses but also for those who they eventually employ. Read more about youths who a breaking new grounds here <a href=\"http://images.businessweek.com/ss/05/10/young_entrepreneur/index_01.htm\">http://images.businessweek.com/ss/05/10/young_entrepreneur/index_01.htm</a> </p> <p> </p></td> </tr> <tr> <td height=\"30\" colspan=\"2\" valign=\"top\" bgcolor=\"#FFFF00\"><span class=\"style2\">ARTICLE: IS BUSINESS RIGHT FOR ME? (PART ONE)</span></td> </tr><tr> <td height=\"1672\" colspan=\"2\"> <p> </p> <p><em>By Abiodun Ajijola, Managing Director/CEO, CGMIE Consulting Limited </em></p> <p>You might have noticed that few businesses actually last in our country today. One year their doing so well, expanding, purchasing new official cars, moving into gorgeous offices and the next year, their downsizing, laying of staff, cutting costs and some even going bankrupt and being forced to close shop. This cycle is all too common in our business world. Don't think this is peculiar to Nigeria alone. A study conducted several years ago in the United States of America showed that ninety percent of all businesses failed within five years of setup while the figure increased to ninety-nine percent over a ten-year period. This goes to show that business failure is a common phenomenon the world over. Nobody likes to fail, especially at business, however most people don't succeed as they ought to. Some of the causes of this are inadequate planning and ineffective execution. It has been said that one who fails to plan actually plans to fail. You can't expect to jump into any kind of business and then expect to succeed. You must carefully analyze the business you wish to embark upon and assess your ability to execute it taking into consideration, your time, financial resources, human resources, knowledge of the business and its industry amongst a host of other considerations. </p> <p>People go to a clinic when they are sick. They also go to clinics for routine health checkups. The Small Business Clinic will be of use to you whether or not your business is experiencing problems or if it is thriving like no man's business. For the person who hasn't even started business but is planning on whether or not to do so, you are not left out. I must inform you that our first series of articles are dedicated to you. </p> <p>So you ask, 'Is business right for me?'. Only you can decide that. However, entrepreneurship is not for everyone. Some people are intrinsically designed to run businesses while others are not. I must add that if you're determined to run a business, then you can spend some time in personal development and acquire the necessary traits that successful entrepreneurs have.</p> <p>Over the years and in my studies I have found the following traits to be found in successful entrepreneurs. Look at these traits and score yourself between zero and five. Zero indicates that you have none of that trait in you while five indicates that the trait is highly dominant in your behavior. </p> <ul type=\"disc\"> <li>Adaptability – Cope with new situations and find creative solutions to problems<span dir=\"rtl\"> </span></li> <li>Competitiveness – compete with and test oneself against others<span dir=\"rtl\"> </span></li> <li>Confidence – Belief that you can do what you set out to do<span dir=\"rtl\"> </span></li> <li>Discipline – To stay focused and stick to a schedule and deadlines<span dir=\"rtl\"> </span></li> <li>Drive – Desire to work hard to accomplish one’s goals<span dir=\"rtl\"> </span></li> <li>Honesty – Commitment to tell the truth and deal with people fairly<span dir=\"rtl\"> </span></li> <li>Organisation – Structure one\’s life and keep tasks and information in order<span dir=\"rtl"> </span></li> <li>Perseverance – Refusal to quit; Keep goals in sight and work toward them despite obstacles<span dir=\"rtl\"> </span></li> <li>Persuasiveness – Knack for convincing people to see your point of view and get them interested in your ideas<span dir=\"rtl\"> </span></li> <li>Risk-Taking – Courage to expose oneself to possible losses<span dir=\"rtl\"> </span></li> <li>Understanding – Ability to listen to and empathize with other people<span dir=\"rtl\"> </span></li> <li>Vision – Ability to see the end results of your goals while working to achieve them.</li> </ul> <p>Now sum up your scores for each trait. Did you score above forty-five? If you did, you're ripe for entrepreneurship. If you did not, you need not bother. Just look at those traits that you scored low on and take proactive steps to improve them. Of course, this does not mean you should not start a business. You can develop these skills as you go along. </p> <p>Entrepreneurship like many of life's endeavors has its share of advantages and disadvantages. Be sure you understand this before plunging into the expansive ocean of business.</p> <p>One of the major advantages of owning a business is independence. You run your own show. No boss, no politics, it's your call. If you find that you can not tolerate constantly being under a boss then you should give serious consideration to entrepreneurship. As a business owner you have the freedom to do whatever you wish, work wherever you want, dress however you feel, work as long or as short as you want, you name it its freedom galore. </p> <p>Another advantage is satisfaction. The joy of knowing that you're doing your own thing is immeasurable. You feel fulfilled and experience an inner peace that comes only from pursuing your passion. Working long hours isn't a burden; after all you are doing what you love. This is one advantage that usually sets business owners apart from employees. Most employees work where they are paid the highest and have the best working conditions. A lot of the time an employee will sacrifice job satisfaction for money. An entrepreneur on the other hand cannot afford to do this. This basic difference helps entrepreneurs succeed better.</p> <p>Business owners over time generate more money than their employee counterparts. Initially the employee seems to be doing better. He lives in a nice house, drives a nice car, goes on foreign vacations, wears the best clothes and indeed lives life to the fullest. The entrepreneur however at the early stages can't buy the car of his dreams, lives as frugally as possible, can't go on expensive vacations and is seen to be suffering by most. Over the years however, she expands her customer base, increases her market share and in less than a decade is generating huge amounts of profit. Now she expands and begins to employ additional staff across the country. Her income at this stage is increasing exponentially. Her employee counterpart has probably being promoted to managerial position but his income earning capacity is limited by the company. It is at this point that the entrepreneur is seen to have taken the better path. The reason why most people feel that being an employee is better is because they are too often myopic and fail to remain committed to their business for the long term and consequently end up with a business failure. Going into business is no joke. It takes time and perseverance. If you're not ready to stick with it, don't start it.</p> <p>The last advantage we will be considering for now is self-esteem. I don't know if you have noticed, but a lot of people have a very low self-esteem. I know people who abhor their superiors and envy successful people. They usually feel inferior deep down and as a result possess a low self-esteem. Running a business makes you confident in your abilities. When you succeed you are able to say that you did it. This works wonders for your self-esteem. In addition as a business owner you will confront many people. As you meet more and more people and succeed you will see that confidence in yourself naturally increases. This is important because what joy can you get out of life if you don't feel good about yourself?</p> <p>In the next edition of Small Business Clinic we will take a look at some of the disadvantages of going into business. We'll also take a look at questions you should ask yourself about being a small business owner. Please send your questions and inquiries to <a href="mailto:smallbusinessclinic@smeresources.org">smallbusinessclinic@smeresources.org</a> for prompt response. We will respond to all your questions but publish as many as we have space for. </p> <p><strong><em>This article was written by Abiodun Ajijola. He is the Managing Director of CGMIE Consulting Limited (a company set up to provide entrepreneurial development training for Africans at affordable prices), winner of the Fate Foundation Business Plan Competition 2004, a public speaker, entrepreneurial development trainer and writer. You can contact him at <a href="mailto:smallbusinessclinic@smeresources.org">smallbusinessclinic@smeresources.org</a>, +2348058026196 or on the Internet at <a href=\"http://www.smeresources.org\">www.smeresources.org</a>. </em></strong></p> <p> </p></td> </tr><tr> <td height=\"30\" colspan=\"2\" valign=\"top\" bgcolor=\"#8018cb\"><span class=\"style2\"> ENTREPRENEUR DISCUSSION GROUP</span></td> </tr><tr> <td height=\"380\" colspan=\"2\"> <p>Do you know what youths the world over are saying about entrepreneurship? Do you want to share your views with other youths with diverse backgrounds? If you are interested in belonging to a fast growing online community of young entrepreneurs, then the CGMIE Consulting Limited Entrepreneur Discussion Group is for you. Click the link below and signup to the various discussions available. You can post your comments, read those of others and even add topics. Topics we are currently discussing in the forum are: </p> <p>Business Name - A forum with the aim of providing aids to you in choosing a Business Name<span dir=\"rtl\"> </span></p> <p>Business Plan - a place where you can find help in whatever that pertains to writing and implementing business plans<span dir=\"rtl\"> </span></p> <p>Youth Employment - To discuss how to increase provision of jobs amongst the youth worldwide<span dir=\"rtl\"> </span></p> <p>Youth Entrepreneurship - Encouraging entrepreneurship development amongst young people as a means to employment generation and sustainable national development</p> <p><strong><a href=\"http://www.smeresources.org/forum.php\">http://www.smeresources.org/forum.php</a></strong></p> <p> </p></td> </tr> <tr> <td height=\"30\" colspan=\"2\" valign=\"top\" bgcolor=\"#FFFF00\"><span class=\"style2\">BOOK OF THE MONTH</span></td> </tr><tr> <td width=\"210\" height=\"912\" valign=\"top\"><p> </p> <p><img src=\"http://www.smeresources.org/images/book.jpg\" alt=\"Parable of Dollars\" width=\"240\" height=\"240\" longdesc=\"images/book.jpg\" /></p></td> <td width=\"344\" valign=\"top\"> <p><strong>The Parable of Dollars</strong><br/> <em>By Sam Adeyemi</em></p> <p align=\"center\"><strong>Editorial Reviews</strong></p> <p><strong>Tony Aleogena-Raphael. President, Unicon Union PLC</strong><br /> This book being our motivation, we successfully built a multinational group of companies with of over twenty-two million dollars. <br /> <br /> <strong>Ayo Arowolo, CEO, The Investment Club Network</strong><br /> If you desire freedom from financial crises, through legitimate, God-inspired ways, this is one book you must read. <br /> <br /> <strong>Adekunle Oyegade, CEO, First Class Books Nigeria Ltd.</strong><br /> Sam's teachings packaged in this book helped me build a group of companies worth millions now. It is illuminating. <br /> <br /> <strong>Book Description</strong><br /> <br /> "The Parable of Talents is one of the prominent parables of Christ. The word "talent" by it’s use in present times connotes the inherent gifts and abilities in people, hence the parable has been used to teach on the stewardship of our God-given gifts and talents. However, the talent as used in this parable was a currency in biblical times just as the dollar is in our days. A second look at this parable shows that it contains powerful secrets for financial abundance. <br /> This book is intended on one hand to be a reminder of the things you may have learnt on finances from the Bible. On the other hand, it is intended to ignite a spark in your heart to take practical steps towards wealth creation. It goes a little beyond conventional teachings on giving, to cultivating wealth-building habits like saving, investing and entrepreneuring. It ends with supernatural wealth building principles through addiction to the Kingdom of God. <br /> In this book and the included workbook you will discover how to: <br /> Build a Wealth Mentality <br /> Develop Financial Intelligence <br /> Break the poverty cycle in your life <br /> Make, Multiply and Manage Your Money God's way through wise investments <br /> Discover and Develop your God-given gifts and abilities to release your <br /> financial increase <br /> <br /> <strong>About the Author</strong><br /> Sam Adeyemi, insightful teacher, motivational speaker and author of several books on successful living, is the Presiding Pastor of the Daystar Christian Centre, Lagos, Nigeria, a church with the vision of raising role models of excellence. <br /> Through his organization, Success Power International, he hosts the Radio Program: "Success Power" which is broadcast in Nigeria and many other nations. <br /> He has the God-given mandate to teach scriptural success principles through radio, television, tapes, seminars and publications. He is much sought after as a speaker in churches, seminars, and conferences internationally.</p> <p> </p></td> </tr> <tr> <td height=\"30\" colspan=\"2\" valign=\"top\" bgcolor=\"#8018cb\"><ol> <span class=\"style2\">OCTOBER INVESTMENT TIP</span></td> </tr><tr> <td height=\"342\" colspan=\"2\" valign=\"top\"> <p> </p> <p>This month we look at some quotes from the famous Oracle of Omaha, none other than Mr. Warren Edward Buffet. Being the world's greatest investor, his ideas cannot be taken for granted. We hope you enjoy yourself while you digest these delectable quotes.</p> <ul> <li>Wide diversification is only required when investors do not understand what they are doing.<span dir=\"rtl\"> </span></li> <li>Only buy something that you'd be perfectly happy to hold if the market shut down for 10 years.<span dir=\"rtl\"> </span></li> <li>We simply attempt to be fearful when others are greedy and to be greedy only when others are fearful.<span dir=\"rtl\"> </span></li> <li>Why not invest your assets in the companies you really like? As Mae West said, "Too much of a good thing can be wonderful".<span dir=\"rtl\"> </span></li> <li>Your premium brand had better be delivering something special, or it's not going to get the business.<span dir=\"rtl\"> </span></li> <li>Our favourite holding period is forever.<span dir=\"rtl\"> </span></li> <li>"Rule No.1: Never lose money. Rule No.2: Never forget rule No.1."<span dir=\"rtl\"> </span></li> <li><span dir=\"ltr\"> </span><span dir=\"ltr\"> </span>"Someone's sitting in the shade today because someone planted a tree a long time ago."<span dir=\"rtl\"> </span></li> <li><span dir=\"ltr\"> </span><span dir=\"ltr\"> </span>"Wall Street is the only place that people ride to in a Rolls Royce to get advice from those who take the subway."<span dir=\"rtl\"> </span></li> </ul> <span dir=\"ltr\"> </span><span dir=\"ltr\"> </span> <ul> <li>"Risk comes from not knowing what you're doing."</li> </ul></td> </tr><tr> <td height=\"30\" colspan=\"2\" valign=\"top\" bgcolor=\"#FFFF00\"><span class=\"style2\">PRESENTATIONS FROM YES KENYA 2006</span></td> </tr><tr> <td height=\"152\" colspan=\"2\"> <p> </p> <p>The just concluded Youth Employment Summit (YES) Kenya 2006 was a wonderful event which provided huge opportunities for networking, learning and discovering opportunities. It's all over now but during the four hectic days of the summit many people may have forgotten to get all the presentations. We have been able to get some of the presentations and make them available for free download. Click the link below for more... <a href=\"http://www.smeresources.org/tools-search.php?searchField=YES%20KENYA%202006%20Presentations\">http://www.smeresources.org/tools-search.php?searchField=YES%20KENYA%202006%20Presentations </a></p> <p>click <a href=\"http://www.smeresources.org/gallery.php\">here</a> for pictures from the events </p> <p> </p></td> </tr><tr> <td height=\"30\" colspan=\"2\" valign=\"top\" bgcolor=\"#8018cb\"><ol> <span class=\"style2\">ORGANISATION OF THE MONTH</span></td> </tr><tr> <td height=\"152\" colspan=\"2\"> <p> </p> <p align=\"center\"><strong>LEAP AFRICA</strong></p> <p>We have chosen Leap Africa as our organisation of the month. Leadership, Effectiveness, Accountability and Professionalism (LEAP) Africa is a non-profit organization, which is committed to inspiring, empowering and equipping a new cadre of African leaders. I LEAP provides leadership training programmes and executive coaching services for business owners who manage small and medium-sized enterprises and for youth. LEAP also invests in continuous research on leadership development in Africa. This research serves as the basis of our innovative curriculum. Click <a href=\"http://www.smeresources.org/success_stories_view.php?id=1&name=%20Ndidi%20Okonkwo%20Nwuneli<br/>%20CEO,%20Leap%20Africa\">here</a> to learn more </p> <p> </p></td> </tr> <tr> <td height=\"30\" colspan=\"2\" valign=\"top\" bgcolor=\"#FFFF00\"><span class=\"style2\">NEWS</span></td> </tr><tr> <td height=\"92\" colspan=\"2\" valign=\"top\"> <p> </p> <p> <img src=\"http://www.smeresources.org/images/smeresources-logo.jpg\" alt=\"sme logo\" width=\"76\" height=\"50\" /></p></td> </tr><tr> <td height=\"513\" colspan=\"2\" valign=\"top\"> <p> </p> <p>CGMIE Consulting Limited is set to train another set of youths in the Youth Entrepreneurship Programme (YEP). Scores of youths residing in the Federal Capital Territory, Nigeria are about to commence a six week long entrepreneurial training programme. The theme of the programme is 'Equipping participants with entrepreneurial skills to enable them build sustainable and profitable businesses'. Over five hundred youths have so far benefited from the Youth Entrepreneurship Programme (YEP). To find out more ….</p> <p><strong><a href=\"http://www.smeresources.org/yep.php\">http://www.smeresources.org/yep.php</a></strong></p> <p>CGMIE Consulting limited partners with Saturday Champion (Champion Newspaper) to produce the Small Business Clinic (SBC). The purpose of the clinic is to provide readers an opportunity to get sound professional business advice as well as learn from other entrepreneurs throughout the country. According to CGMIE Consulting CEO, Mr. Abiodun Ajijola " The Small Business Clinic is developed by CGMIE Consulting Limited and published by Saturday Champion to help budding entrepreneurs and even thriving ones gain access to effective business information in an easy manner and of course at no extra cost." He goes on to say that "People go to a clinic when they are sick. They also go to clinics for routine health checkups. The Small Business Clinic will be of use to you whether or not your business is experiencing problems or if it is thriving like no man's business. For the person who hasn't even started business but is planning on whether or not to do so, you are not left out." For those living outside Nigeria you can access the articles published in the Small Business Clinic from …..</p> <p><strong><a href=\"http://www.smeresources.org/articles.php\">http://www.smeresources.org/articles.php</a></strong></p> <p><a href=\"http://www.smeresources.org\">www.smeresources.org</a> opens its Entrepreneur Discussion Group. For all those who love to meet and discuss with fellow entrepreneurs around the world without having to pay for flight tickets, hotel accommodation and obtain visas, CGMIE Consulting has created a user-friendly online forum for discussions amongst entrepreneurs of all cadres. To join click here</p> <p><strong><a href=\"http://www.smeresources.org/forum.php\">http://www.smeresources.org/forum.php</a></strong></p> <p><strong><br clear=\"all\" /> </strong></p></td> </tr><tr> <td height=\"30\" colspan=\"2\" valign=\"top\" bgcolor=\"#8018cb\"><ol> <span class=\"style2\">Article 2: NEEDS and the GSM Industry</span></td> </tr><tr> <td height=\"1178\" colspan=\"2\" valign=\"top\"> <p> </p> <p>In 2004, the Federal Government adopted the National Economic Empowerment Development Strategy (NEEDS) which has highlighted our socio-economic developmental aspirations to be reform of the public sector, enabling a robust private sector-led economy and the implementation of an effective social charter for the purposes of reducing poverty, creating wealth, generating employment and re-orientating national values. A fundamental feature of NEEDS is that it clearly delineates responsibilities between government and the private sector in its component strategies, plans and targets.<span dir=\"rtl\"> </span></p> <p>Government would provide the enabling business and regulatory environment while the private sector is to invest in and manage ventures that would stimulate and support socio-economic development. NEEDS is therefore a broad based Public Private Partnership (PPP) initiative which all stakeholders in the developmental process are expected to buy into for optimal success in implementation.<span dir=\"rtl\"> </span></p> <p>Being aware of the catalytic role typically played by mobile telecommunications in socio-economic development in Africa, the GSM operators in Nigerian have developed a Joint Economic Development (JED) Framework to support the government in the actualization of its objectives as set out in NEEDS.<span dir=\"rtl\"> </span></p> <p>Employing barometers prescribed in NEEDS , the framework outlines the positive multiplier effect of mobile telecommunications on virtually every area of endeavour in the society, previews additional prospects for the industry, reviews the telecommunications sectoral targets, highlights its challenges, proposes solutions to such challenges and assigns definite roles to government and operators for further optimization of the benefits of GSM services.<span dir=\"rtl\"> </span></p> <p>The targets assigned to the telecommunications sector by NEEDS are: attainment of a tele-density of 1:25 in the year 2007,enhancement of tele-access especially in the rural areas and the development of a national communications backbone and multimedia super-corridor. Strategies identified for accomplishing these targets include the use of fiscal / financial incentives to promote investment, adoption of a local content policy in the manufacture of equipment, accessories and components as well as financial support for rural roll out and internet access. Today tele-density stands at about 1:15, there is significant improvement in rural tele-access penetration and from just one (NITEL) transmission backbone that was available in 2001, there are at least four other backbones being constructed across the country.<span dir=\"rtl\"> </span></p> <p>The summary is that the telecommunications sector has met and, in respect of tele-density, exceeded its targets under NEEDS. This development is fundamentally due to the advent of GSM services in 2001which has resulted in a dramatic increase in the total number of lines to about 12 million today from just above 500,000, accounting for about 91% of the total telephony (fixed and mobile) market. There has been more expeditions roll out in rural areas covering over 50% of the Local Government Areas and at least 5,000 communities and villages. Most of the GSM operators are presently building transmission backbones to complement NITEL’s facilities. The of this will be the availability of spare capacity that can be utilized by other interests for conveying data, video and voice. These developments inform Nigeria’s present rating as the fastest growing telecommunications market in Africa.<span dir=\"rtl\"> </span></p> <p>In line with the aspirations of NEEDS, the accomplishment of the targets outlined above has enormously impacted positively on the nation’s socio-economic atmosphere. At macro-economic level, the sector’s contribution to GDP improved by 53% in 2003 making it third highest contributor ahead of the financial sector which has been in operation for about 100 years and Foreign Direct Investment of about $5 billion has been attracted. In respect of employment, over 135,000 persons have been directly and indirectly employed by the operators and their supply chain components while the industry’s support service sectors such as banking, insurance, consultancies, (legal accounting, HR, tax), haulage, shipping and IT as well as the Small and Medium Scale Enterprises (SME’s) segment of the economy have also experienced considerable levels of increased activity. Government treasury has been boosted by payment of over N200 billion as taxes and levies. National output has also been enhanced as travel times and associated risks have been reduced, business communication improved and the rural-urban gap narrowed down. Social and family relationships and the security situation have also been significantly enhanced.<span dir=\"rtl\"> </span></p> <p>A large number of not-for-profit Corporate Social Responsibility (CSR) initiatives are being sponsored by the operators. By all standards, the sector has performed remarkably well since inception in accomplishment of the NEEDS targets and supporting socio-economic development. Investment in, and management of a GSM network is therefore a long term venture that requires effective planning and a conducive environment. In this regard, the sector has identified certain issues that are central to its sustained growth which government needs to address within the context of its duty under NEEDS of providing the appropriate policy and regulatory guideline that would encourage and support private sector investment. The operators on their part, as responsible corporate citizens and in the true spirit of partnership, also commit to some obligations in return. The issues are inadequate power supply, Customs Clearance processes, inadequate fiscal and financial incentives, multiple taxation, inadequate backbone infrastructure, absence of local manufacture and maintenance capacity, pragmatic industry regulatory framework among others. It is expected that government, being in the driving seat for the project, will duly accord the deserved level of attention to the implementation.<span dir=\"rtl\"> </span></p> <p><strong>ADEBIYI BABAJIDE</strong><strong><span dir=\"rtl\"> </span></strong><br /> <strong>Obafemi</strong><strong> Awolowo University, Ile-Ife, Osun State, Nigeria</strong><strong><span dir=\"rtl\"> </span></strong></p> <span dir=\"ltr\"> </span><strong><span dir=\"ltr\"> </span>+2348055916893</strong> <p> </p></td> </tr><tr> <td height=\"30\" colspan=\"2\" valign=\"top\" bgcolor=\"#FFFF00\"><span class=\"style2\">CLOSING REMARKS</span></td> </tr><tr> <td height=\"342\" colspan=\"2\" valign=\"top\"> <p> </p> <p>This brings us to the end of the maiden edition of Youth Business News (YBN). We hope you enjoyed it and will make a date with us in November 2006.</p> <p>If you are not subscribed and would like to subscribe, please visit <a href=\"http://www.smeresources.org\">http://www.smeresources.org</a>. </p> <p>If you would like to contribute content, become involved, make suggestions, or provide feedback please feel free to contact us at info@smersources.org. We encourage you to participate in our Entrepreneur Discussion Group at <strong><a href=\"http://www.smeresources.org/forum.php\">http://www.smeresources.org/forum.php</a>.</strong></p> <p>Our newsletter is published by <a href=\"http://www.smeresources.org\">www.smeresources.org</a> and supported by CGMIE Consulting Limited. We also encourage you to forward this newsletter to all those you know will benefit from its content. </p> <p>You can contact CGMIE Consulting Limited at: <strong>info@smeresources.org</strong></p> <p> </p> <p> </p></td> </tr></td> </tr></table>"; // Set some parameters $toAddress = "d4dayo2001@yahoo.com"; $subject = "Test Subject"; $headers = "Content-type: text/html\n\n"; // Try to send the message $success = mail($toAddress,$subject,$message,$headers); if($success){ print "Newsletter Sent"; } else{ echo'Newwsletter could not be sent'; } ?>[/code]and it was giving me this error message[code]Parse error: syntax error, unexpected T_STRING in /home/sme/public_html/sendmail2.php on line 30[/code]I have checked all my strings and I think they are okay.Pls I need your helpThanks Quote Link to comment https://forums.phpfreaks.com/topic/25579-sending-mail-using-emails-stored-in-a-database/#findComment-117767 Share on other sites More sharing options...
HuggieBear Posted November 1, 2006 Share Posted November 1, 2006 Does the highlighted code not help you? The fact that nearly all your code is red, apart from a few lines, the first of which being line 30?Line 30 contains a quote with "double quotes" around it. Do you think you need to do anything to those double quotes to have them show correctly?RegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/25579-sending-mail-using-emails-stored-in-a-database/#findComment-117772 Share on other sites More sharing options...
xux Posted November 1, 2006 Author Share Posted November 1, 2006 Hi, I always do my php coding with notepad,can you recommend any php IDE to me?ThanksI will rectify thatMy RegardsXUX Quote Link to comment https://forums.phpfreaks.com/topic/25579-sending-mail-using-emails-stored-in-a-database/#findComment-117777 Share on other sites More sharing options...
HuggieBear Posted November 1, 2006 Share Posted November 1, 2006 I don't have a fancy IDE, but I do use a free application with syntax highlighting. Something like [url=http://www.crimsoneditor.com/]Crimson Editor[/url].RegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/25579-sending-mail-using-emails-stored-in-a-database/#findComment-117779 Share on other sites More sharing options...
xux Posted November 2, 2006 Author Share Posted November 2, 2006 Thanks,I have been able to implement the changes and everything went on well.You are my main man ;D Thanks a lotMy RegardsXUX Quote Link to comment https://forums.phpfreaks.com/topic/25579-sending-mail-using-emails-stored-in-a-database/#findComment-118343 Share on other sites More sharing options...
HuggieBear Posted November 2, 2006 Share Posted November 2, 2006 No problem, happy to help.Huggie Quote Link to comment https://forums.phpfreaks.com/topic/25579-sending-mail-using-emails-stored-in-a-database/#findComment-118347 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.