# Assign "FROM" Email in PHP Form

**URL:** <https://forum.kirupa.com/t/assign-from-email-in-php-form/219042>\
**Category:** Uncategorized\
**Created:** [March 13, 2007, 12:32pm UTC](https://forum.kirupa.com/t/assign-from-email-in-php-form/219042 "2007-03-13T12:32:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webice23](https://avatars.discourse-cdn.com/v4/letter/w/958977/32.png) [@webice23](https://forum.kirupa.com/u/webice23)\
**Post date:** [March 13, 2007, 12:32pm UTC](https://forum.kirupa.com/t/assign-from-email-in-php-form/219042/1 "2007-03-13T12:32:08Z")

</div>

Hi,

I created a form but the problem is, when it shoots the email to my inbox… the “From” field says “example1”. I would like it to say “example2”. I know I have to figure out a way to edit the PHP script so that the email shoots from [example2@mydomain.com](mailto:example2@mydomain.com) instead of [example1@mydomain.com](mailto:example1@mydomain.com) since I know that will resolve the “FROM” problem.

This is what I need help on. What do I have to do to change the email address from where it is shooting the emails from the Contact Form?
