The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel username in Subject

Discussion in 'cPanel Developers' started by tecwithquestion, Aug 30, 2016.

  1. tecwithquestion

    tecwithquestion Active Member

    Joined:
    Oct 20, 2014
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello

    I have created plugin where I want to send email to support email id. Everything is working fine but I want to add cPanel username in subject.

    function sendform($form, $server) {
    $emailAddress = $_POST['email'];
    $from = 'From: ' . $_POST['email'] . "\r\n";
    $subject = 'cprequest ' . strtoupper($form->subject) . ' ';

    This is my current format. How can I add cPanel username and hostname in sunject ?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you provide some additional information about which cPanel username you want added to the message subject? For instance, are you attempting to add the cPanel username associated with the account using that PHP script?

    Thank you.
     
Loading...

Share This Page