FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


mail with php





dsaonline
Hi, I'm new in this topic, i want to know how to send a email with php.

it is necesary a have a mail server...??

help please!!
SpellcasterDX
Well yes, it is necessary to have a mail server (I think), but regardless Frihost has emailing capabilities. You merely need to write a php script to send out the mail. However how to go about writing one, I wouldn't know.
rappn
Here is a example of a mail-code:
Code:

$msg = "Here you write your message, \n is instead of <br>! So dont forget that!";
$from = "From: YOURMAILACCOUNT@DOMAIN.COM";
   
     mail($_POST['email'], 'THE SUBJECT!', $msg, $from);


There is a simple mail-code!

Hope you like it!
dsaonline
ok, so thanks, i'll try to do this...
rappn
dsaonline wrote:
ok, so thanks, i'll try to do this...


Ill hope you get it work as you want to!
In case it does, write a line or two telling me what you liked Laughing

Maybe you update it a little?

Hope you find good use for it anyway!
dsaonline
ok, just i'm waiting for my domain for the host and tryt it.. i hope i can to to this..
Related topics
how to change the FROM adress ?
PHP: Feedback form issues.. help =P
JJstorms homepage
SendMail Script
php mailing script
Simple and Detailed Mail Script
php mail and BCC
question : how to make a form on dreamweaver?
Help needed link/page checker
question about mail function
access problems
Can You Get HTML in Your PHP Mail Script?
PHP - Code
php/sql question
PB envoi mail avec Joomla
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Frihost Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.