Email Form - Adding a name to the "From" email

By depdesign - September 14, 2017

Just figured out how to do incase anyone else would like to do here is the code:

$mailErrors = sendMessage(array(
      'to'       =>  $_REQUEST['email'],
      'from'     =>  'Website Admin <admin@website.com>',
      'subject'  =>  $_REQUEST['reply_subject'],
      'html'     =>  $message,
    ));

Dan Perez

By Dave - September 18, 2017

Thanks for posting the solution! 

Dave Edis - Senior Developer
interactivetools.com