geroid Posted September 28, 2009 Share Posted September 28, 2009 Hi I'm just about to start my email section of the website I'm working on. I don't know much about this and I was looking for some advice. All I'm doing is allowing the user to send an email to the site administrator from the website. That's all. Any ideas what function I should be looking at? Gerry Quote Link to comment https://forums.phpfreaks.com/topic/175833-email-code-advice/ Share on other sites More sharing options...
Alex Posted September 28, 2009 Share Posted September 28, 2009 mail() Quote Link to comment https://forums.phpfreaks.com/topic/175833-email-code-advice/#findComment-926534 Share on other sites More sharing options...
phporcaffeine Posted September 28, 2009 Share Posted September 28, 2009 Geroid, Not sure if your like me or not but I always need a piece of code that I can reverse engineer. While the http://us2.php.net/manual/en/function.mail.php is an excellent resource to start with, email headers can be a bit tricky if your not familiar with them. In addition to reading the manual, take a look at the script here: http://bit.ly/1Lyoy0 it will send plain text emails and also allow you to send file attachments. Between that and the manual, you should have everything you need. Do let us know if there is anything else we can do for you. Quote Link to comment https://forums.phpfreaks.com/topic/175833-email-code-advice/#findComment-926549 Share on other sites More sharing options...
geroid Posted September 28, 2009 Author Share Posted September 28, 2009 Thanks for the help. I'll take a look at that stuff and begin my first email script. Here goes!!! Quote Link to comment https://forums.phpfreaks.com/topic/175833-email-code-advice/#findComment-926553 Share on other sites More sharing options...
sawade Posted September 28, 2009 Share Posted September 28, 2009 Gerry, For my advice. mail() functions can get a little confusing... especially when you go into trying to attachments. If your server allows php, they shouldn't have a problem with you installing some pear packages. I would recommend using the mail factory that pear has. EXCELLENT! I love it. Especially since I can define my SMTP and get attachments done much easier. For me PEAR has been way less stressful that mail(). Good luck. Quote Link to comment https://forums.phpfreaks.com/topic/175833-email-code-advice/#findComment-926575 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.