PHP form email - Wait x hours before sendingScript should send an email containing form submission values, but no email is getting sentAdding Form Data into html file being emailed using phpmailerSend Sign Up Form Results to Email Address Via PHPEmail PHP Contact Form error as random outputphp implode function stylingPHP form is sending blank emailChanging From field when sending an email through php formThree php send mail forms on same page, by click on first submit all three mails sentGetting error after email sendPhp form emailing but $_POST['email'] is failing

Addressing an email

What city and town structures are important in a low fantasy medieval world?

Are there any crystals that are theoretically possible, but haven't yet been made?

How to convince boss to spend notice period on documentation instead of new projects

Why did Nick Fury not hesitate in blowing up the plane he thought was carrying a nuke?

Can't think of a good word or term to describe not feeling or thinking

Latin words remembered from high school 50 years ago

How can sister protect herself from impulse purchases with a credit card?

Could a chemically propelled craft travel directly between Earth and Mars spaceports?

Why favour the standard WP loop over iterating over (new WP_Query())->get_posts()?

Why does string strummed with finger sound different from the one strummed with pick?

Why are Marine Le Pen's possible connections with Steve Bannon something worth investigating?

Why would Thor need to strike a building with lightning to attack enemies?

Can the word crowd refer to just 10 people?

Precedent for disabled Kings

Working hours and productivity expectations for game artists and programmers

Why aren't satellites disintegrated even though they orbit earth within earth's Roche Limits?

Is my company merging branches wrong?

Print characters from list with a For-loop

Gambler's Fallacy Dice

Can a Warforged have a ranged weapon affixed to them like an armblade?

How does the "reverse syntax" in Middle English work?

Was Tyrion always a poor strategist?

Was murdering a slave illegal in American slavery, and if so, what punishments were given for it?



PHP form email - Wait x hours before sending


Script should send an email containing form submission values, but no email is getting sentAdding Form Data into html file being emailed using phpmailerSend Sign Up Form Results to Email Address Via PHPEmail PHP Contact Form error as random outputphp implode function stylingPHP form is sending blank emailChanging From field when sending an email through php formThree php send mail forms on same page, by click on first submit all three mails sentGetting error after email sendPhp form emailing but $_POST['email'] is failing






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I'm building a simple website where a form asks for an Artist Name, Email and a URL. Then, when the submit button is clicked, an email is sent to the "customer" with some details.



I want to give the effect that we are revising what he/she sent. For that I would need the email to be sent 30min/1h after the form was submitted. I haven't tried anything because I am pretty new with PHP and I couldn't find it anywhere else.



Here's my php:



<?php
if(isset($_POST['email']))

// EDIT THE BELOW TWO LINES AS REQUIRED
$email_to = "admin@domain.com";
$email_subject = "New repost submission, waiting for payment";

function errorMesg()
// Error code can go here
echo "We are very sorry, but there were error(s) found with the form you submitted. ";
echo "<br /><br />";
echo "Please go back and fix these errors.<br /><br />";
die();


// validation expected data exists
if(!isset($_POST['name'])
?>









share|improve this question

















  • 4





    I want to give the effect that we are revising what he/she sent. lol. Store the email data in a database or some temporary file. then setup a cronjob that runs every 30 minutes and sends emails that are older than x minutes

    – kuh-chan
    Mar 23 at 18:46











  • How would you do that? As I said, I'm new to this.

    – Arnau Jiménez
    Mar 23 at 18:56











  • You can save the email data and the address in your database. After verification, you (as an admin) can send it manually. Or you can also set cron jobs

    – Zain Farooq
    Mar 23 at 18:59












  • I think this is really a bit too broad for SO. Break your problem down into small steps along the lines that kuh-chan described, then solve each one separately.

    – Synchro
    Mar 23 at 19:03

















0















I'm building a simple website where a form asks for an Artist Name, Email and a URL. Then, when the submit button is clicked, an email is sent to the "customer" with some details.



I want to give the effect that we are revising what he/she sent. For that I would need the email to be sent 30min/1h after the form was submitted. I haven't tried anything because I am pretty new with PHP and I couldn't find it anywhere else.



Here's my php:



<?php
if(isset($_POST['email']))

// EDIT THE BELOW TWO LINES AS REQUIRED
$email_to = "admin@domain.com";
$email_subject = "New repost submission, waiting for payment";

function errorMesg()
// Error code can go here
echo "We are very sorry, but there were error(s) found with the form you submitted. ";
echo "<br /><br />";
echo "Please go back and fix these errors.<br /><br />";
die();


// validation expected data exists
if(!isset($_POST['name'])
?>









share|improve this question

















  • 4





    I want to give the effect that we are revising what he/she sent. lol. Store the email data in a database or some temporary file. then setup a cronjob that runs every 30 minutes and sends emails that are older than x minutes

    – kuh-chan
    Mar 23 at 18:46











  • How would you do that? As I said, I'm new to this.

    – Arnau Jiménez
    Mar 23 at 18:56











  • You can save the email data and the address in your database. After verification, you (as an admin) can send it manually. Or you can also set cron jobs

    – Zain Farooq
    Mar 23 at 18:59












  • I think this is really a bit too broad for SO. Break your problem down into small steps along the lines that kuh-chan described, then solve each one separately.

    – Synchro
    Mar 23 at 19:03













0












0








0








I'm building a simple website where a form asks for an Artist Name, Email and a URL. Then, when the submit button is clicked, an email is sent to the "customer" with some details.



I want to give the effect that we are revising what he/she sent. For that I would need the email to be sent 30min/1h after the form was submitted. I haven't tried anything because I am pretty new with PHP and I couldn't find it anywhere else.



Here's my php:



<?php
if(isset($_POST['email']))

// EDIT THE BELOW TWO LINES AS REQUIRED
$email_to = "admin@domain.com";
$email_subject = "New repost submission, waiting for payment";

function errorMesg()
// Error code can go here
echo "We are very sorry, but there were error(s) found with the form you submitted. ";
echo "<br /><br />";
echo "Please go back and fix these errors.<br /><br />";
die();


// validation expected data exists
if(!isset($_POST['name'])
?>









share|improve this question














I'm building a simple website where a form asks for an Artist Name, Email and a URL. Then, when the submit button is clicked, an email is sent to the "customer" with some details.



I want to give the effect that we are revising what he/she sent. For that I would need the email to be sent 30min/1h after the form was submitted. I haven't tried anything because I am pretty new with PHP and I couldn't find it anywhere else.



Here's my php:



<?php
if(isset($_POST['email']))

// EDIT THE BELOW TWO LINES AS REQUIRED
$email_to = "admin@domain.com";
$email_subject = "New repost submission, waiting for payment";

function errorMesg()
// Error code can go here
echo "We are very sorry, but there were error(s) found with the form you submitted. ";
echo "<br /><br />";
echo "Please go back and fix these errors.<br /><br />";
die();


// validation expected data exists
if(!isset($_POST['name'])
?>






php phpmailer






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 23 at 18:44









Arnau JiménezArnau Jiménez

34




34







  • 4





    I want to give the effect that we are revising what he/she sent. lol. Store the email data in a database or some temporary file. then setup a cronjob that runs every 30 minutes and sends emails that are older than x minutes

    – kuh-chan
    Mar 23 at 18:46











  • How would you do that? As I said, I'm new to this.

    – Arnau Jiménez
    Mar 23 at 18:56











  • You can save the email data and the address in your database. After verification, you (as an admin) can send it manually. Or you can also set cron jobs

    – Zain Farooq
    Mar 23 at 18:59












  • I think this is really a bit too broad for SO. Break your problem down into small steps along the lines that kuh-chan described, then solve each one separately.

    – Synchro
    Mar 23 at 19:03












  • 4





    I want to give the effect that we are revising what he/she sent. lol. Store the email data in a database or some temporary file. then setup a cronjob that runs every 30 minutes and sends emails that are older than x minutes

    – kuh-chan
    Mar 23 at 18:46











  • How would you do that? As I said, I'm new to this.

    – Arnau Jiménez
    Mar 23 at 18:56











  • You can save the email data and the address in your database. After verification, you (as an admin) can send it manually. Or you can also set cron jobs

    – Zain Farooq
    Mar 23 at 18:59












  • I think this is really a bit too broad for SO. Break your problem down into small steps along the lines that kuh-chan described, then solve each one separately.

    – Synchro
    Mar 23 at 19:03







4




4





I want to give the effect that we are revising what he/she sent. lol. Store the email data in a database or some temporary file. then setup a cronjob that runs every 30 minutes and sends emails that are older than x minutes

– kuh-chan
Mar 23 at 18:46





I want to give the effect that we are revising what he/she sent. lol. Store the email data in a database or some temporary file. then setup a cronjob that runs every 30 minutes and sends emails that are older than x minutes

– kuh-chan
Mar 23 at 18:46













How would you do that? As I said, I'm new to this.

– Arnau Jiménez
Mar 23 at 18:56





How would you do that? As I said, I'm new to this.

– Arnau Jiménez
Mar 23 at 18:56













You can save the email data and the address in your database. After verification, you (as an admin) can send it manually. Or you can also set cron jobs

– Zain Farooq
Mar 23 at 18:59






You can save the email data and the address in your database. After verification, you (as an admin) can send it manually. Or you can also set cron jobs

– Zain Farooq
Mar 23 at 18:59














I think this is really a bit too broad for SO. Break your problem down into small steps along the lines that kuh-chan described, then solve each one separately.

– Synchro
Mar 23 at 19:03





I think this is really a bit too broad for SO. Break your problem down into small steps along the lines that kuh-chan described, then solve each one separately.

– Synchro
Mar 23 at 19:03












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55317193%2fphp-form-email-wait-x-hours-before-sending%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55317193%2fphp-form-email-wait-x-hours-before-sending%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript