Hi, i have following mail script and i want to add header info. pls guide where and how i can add it
$this->send_mail->Subject = $this->mail_info['subject']; $this->send_mail->MsgHTML($this->mail_info['body']); $this->send_mail->AltBody = __('This email contains HTML formatting and cannot be displayed right now. Please use an HTML compatible reader.','cftp_admin');
Specifically what type of "header info" are you wanting to add?
That code would seem to be just a small snippet from a 3rd party mail script - which looks a lot like PHPMailer? Do you know which version? If so and this is a "custom header" then there might be an AddCustomHeader() (or addCustomHeader() - lowercase first letter) method. Otherwise, there might be a specific method for the header you are wanting to add?
In that case, as mentioned above, there is the addCustomHeader() method that takes the header name and value as two separate arguments. However, depending on exactly what header you are wanting to add (eg. cc, bcc, etc.), then there might be a more appropriate method - which is why I asked this above.