# Send email when page loaded?

**URL:** <https://forum.kirupa.com/t/send-email-when-page-loaded/319644>\
**Category:** Uncategorized\
**Created:** [February 28, 2011, 9:52am UTC](https://forum.kirupa.com/t/send-email-when-page-loaded/319644 "2011-02-28T09:52:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sybot](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sybot](https://forum.kirupa.com/u/sybot)\
**Post date:** [February 28, 2011, 9:52am UTC](https://forum.kirupa.com/t/send-email-when-page-loaded/319644/1 "2011-02-28T09:52:22Z")

</div>

Hi guys,

Is there any way to send an email when a page is loaded? I have a PHP script that sends a very basic email server side, I want to run it when a page is opened so that it will inform me when a page has been viewed.

The only scripts I can see need a button to run the script, although I want the script to run when the page is loaded without any user interaction?

Is there a way to do this??
