Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

simple mail code

the mail() function

Moderators: macek, egami, gesf

simple mail code

Postby hbraekke » Mon Sep 09, 2013 10:41 am

mail($email_to, $email_subject, $email_message, $headers) or die('error!');

the variables is good, no problems with that. But it returns error!

Can someone help me
hbraekke
New php-forum User
New php-forum User
 
Posts: 2
Joined: Mon Sep 09, 2013 10:19 am

Re: simple mail code

Postby somdcomputerguy » Sat Sep 21, 2013 9:11 am

maybe this'll work
Code: Select all
if !mail($email_to, $email_subject, $email_message, $headers) die('error!');
somdcomputerguy
New php-forum User
New php-forum User
 
Posts: 14
Joined: Tue Oct 04, 2011 6:50 am
Location: West Virginia

Re: simple mail code

Postby johnj » Sun Sep 22, 2013 12:32 am

What is the error that it is returning?
johnj
php-forum Super User
php-forum Super User
 
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm


Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 0 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.