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 ()
#4
RE: php mail ()
(10-02-2017, 10:54 AM)wormsunited Wrote: 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:
<?php
// the message
$msg "New Item submitted";
// use wordwrap() if lines are longer than 70 characters
$msg wordwrap($msg,70);
// send email
mail("someone@example.com","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!

Late reply wormsunited. you can check in Admin>Sentora Config. Scroll down and you will see what the server is using as default for mail provider. the options you r have SMTP/PHPMAIL/sendmail
-BetaTester3.0  ||  Just Another Sentora User. 

Did you know, Sentora has a full Support Documentation ?
If I helped +rep & Thanks is appreciated.
BTC: 1Bps3ZerDFDDnXJ9XdWtHhdhwsV4MVGLkw

Reply
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 7 ,017 02-28-2021, 11:34 AM
Last Post: iraqiboy90
Postfix mail.log to database stikekar 2 8 ,235 03-02-2019, 01:22 AM
Last Post: TGates
E-mail quota limit danandrade 6 28 ,084 08-28-2018, 05:22 PM
Last Post: speeddemon786

Forum Jump:


Users browsing this thread: 1 Guest(s)