Jump to content
xisto Community
Sign in to follow this  
iGuest

email form inside my site

Recommended Posts

I was wondering if anyone knows how I can set something up so that people on my site can email me directly from the page. Someone mentioned something about PHP. Please Help

Share this post


Link to post
Share on other sites

there is a function in PHP called mail();which sends the mail directly from your site... but the email you are using should be hosted from the same webhost...the mail function can be found in the tutorial of php.netenjoy...bye

Share this post


Link to post
Share on other sites

you need using mail function :

 

bool mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]])

 

ex :

mail("to@xx.com","Subject here","Content here","header here");

 

header may be to cc, bcc or style character.

Share this post


Link to post
Share on other sites

a good way to do it is run in it a way that is puts the return value to true or false likeif (mail(all values in here) != FALSE){print "mail sent, thank you.";}else{print "there are problems with the mail right now, sorry for any inconvenience.";}that way if there's a problem you won't get all of those php function errors. :lol:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.