simple mail code

the mail() function

Moderators: macek, egami, gesf

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

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

somdcomputerguy
New php-forum User
New php-forum User
Posts: 14
Joined: Tue Oct 04, 2011 6:50 am
Location: West Virginia
Contact:

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!');

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: simple mail code

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

What is the error that it is returning?


Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 2 guests

cron