FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a 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 don´t 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...


I´ll 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..
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Frihost Support

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