This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

php mail ()
RE: php mail ()
(09-29-2017, 10:11 PM)betatester3.0 Wrote: Hey bud, 

What is exactly wrong with the mail() function ?

Could you give more in depth errors and what you have found to be the issue etc.

Question: what is the error lol

Hi so sorry, well i have a code to submit a form, very simple one just to send a notification by email. This is my code:

PHP Code:
// the message
$msg "New Item submitted";
// use wordwrap() if lines are longer than 70 characters
$msg wordwrap($msg,70);
// send email
mail("","Pay attention you got a new Submission",$msg);

Now this code comes right after a query to insert in MySQL and before an echo function to notifiy that was sent. All passes just fine and the query works like a charm. But the system does not send the email. It seems that my PHP its using the sendmail option, so i think i gotta edit the sendmail? That's the thing, i dont know were or how to edit this.

Thanks in advance and my best regards mate!
'' Life is full of important choices ''
Help Sentora Donate now => Blush
Thanks given by:

Messages In This Thread
php mail () - by wormsunited - 09-28-2017, 05:31 PM
RE: php mail () - by betatester3.0 - 09-29-2017, 10:11 PM
RE: php mail () - by wormsunited - 10-02-2017, 10:54 AM
RE: php mail () - by betatester3.0 - 10-16-2017, 09:16 PM
RE: php mail () - by wormsunited - 10-17-2017, 11:17 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
External mail client cannot connect to server iraqiboy90 2 6 ,460 02-28-2021, 11:34 AM
Last Post: iraqiboy90
Postfix mail.log to database stikekar 2 7 ,503 03-02-2019, 01:22 AM
Last Post: TGates
E-mail quota limit danandrade 6 26 ,782 08-28-2018, 05:22 PM
Last Post: speeddemon786

Forum Jump:

Users browsing this thread: 1 Guest(s)