# Insert time delay into mail sending

**URL:** <https://forum.kirupa.com/t/insert-time-delay-into-mail-sending/264247>\
**Category:** programming\
**Created:** [June 24, 2008, 11:59am UTC](https://forum.kirupa.com/t/insert-time-delay-into-mail-sending/264247 "2008-06-24T11:59:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![korpela2](https://avatars.discourse-cdn.com/v4/letter/k/8e8cbc/32.png) [@korpela2](https://forum.kirupa.com/u/korpela2)\
**Post date:** [June 24, 2008, 11:59am UTC](https://forum.kirupa.com/t/insert-time-delay-into-mail-sending/264247/1 "2008-06-24T11:59:18Z")

</div>

mail($ToName." \<".$ToEmail."\>",$ToSubject, $Message, “From: “.$from.” \<”.$Email."\>");

This is my mail function, which works fine and sends an email automatically to $ToEmail.

I would like to delay the sending of the email by 15 minutes to mimic a real person response as opposed to an automatic one.

Any ideas?

Thank you
