English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Okay, i need help with writing a PHP code, im somewhat new to PHP so here what i want...Basically i would like you to write a basic PHP code for me. Heres what i want.

-mail() function
the mail function must include $to, $nameto, $from, $namefrom, $subject, and $message.

-Also, i need it to connect to an SMTP server WITH authentification, the server name is mail.bluebottle.com.


Thanks, if you could basically just give a code that would be great! no links please!

Thanks again,

EZ

2007-01-19 11:53:02 · 5 answers · asked by Anonymous in Computers & Internet Programming & Design

5 answers

I take it your Web host is telling you that it doesn't support mail(), and that you need to authenticate against their SMTP server with a user name and password.

They do that in case you don't write your code in a way that prevents e-mail injection, so they can disable your mail account, rather than get their mail servers blacklisted for spamming.

Fortunately, there's a free library for you that will work: phpmailer.

http://phpmailer.sourceforge.net/

Using that should pretty much prevent email injection, but to be on the safe site, read up on email injection attacks:

http://www.securephpwiki.com/index.php/Email_Injection

2007-01-19 18:52:52 · answer #1 · answered by Anonymous · 0 1

RPG and PHP are -not- the same language. Which do you want? RPG is totally unsuitable for coding games. It's a specialist reporting language. If you want to code games, I suggest that you look at Java rather than PHP. PHP is not fast enough for gaming. If you are flexible over the language rather than decide up front, you are more likely to find yourself with a quality product. If you already have a server, then just add the server details and OS to the requirements and then let the project manager/coder decide on the implementation. As for finding coders. Determine EXACTLY what you want from a coder, write your requirements. Decide how much you are prepared to pay and then post your requirements on one of the many freelance bidding sites that are out there. The more detailed you are with your requirements, the more likely you are to get coders to bid on your project and the more likely you are to find the right coder. Personally, I monitor RentACoder for potential work...

2016-05-23 23:00:01 · answer #2 · answered by Anonymous · 0 0

You must have your php script running in bluebottle.com server. Make sure the mail server at bluebottle is linked with web server. Normally they're already setup like that. If not, talk to the admin. You don't have to do anything in your php script. Just follow the correct syntax for mail() function.

2007-01-19 12:13:45 · answer #3 · answered by Anonymous · 0 1

PHP has a mail() function built in. SMTP is lower down so you don't have to worry about that stuff at the PHP level.

2007-01-19 12:01:27 · answer #4 · answered by Dave R 6 · 0 1

Post this http://codingforums.com/forumdisplay.php?f=6

2007-01-19 11:57:40 · answer #5 · answered by Wolf 2 · 0 1

fedest.com, questions and answers