Welcome to WebmasterWorld Guest from 54.226.32.234

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

adding Email Header

adding Email Header

     

dilshan

6:16 am on Aug 13, 2014 (gmt 0)

5+ Year Member



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');

$this->send_mail->SetFrom(ADMIN_EMAIL_ADDRESS, MAIL_FROM_NAME);
$this->send_mail->AddReplyTo(ADMIN_EMAIL_ADDRESS, MAIL_FROM_NAME);

$this->send_mail->AddAddress($this->addresses);

penders

7:23 am on Aug 13, 2014 (gmt 0)

WebmasterWorld Senior Member penders is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



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?

dilshan

6:01 am on Aug 16, 2014 (gmt 0)

5+ Year Member



Yes. it is PHPMailer Version 5.2.7

penders

12:06 pm on Aug 16, 2014 (gmt 0)

WebmasterWorld Senior Member penders is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



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.

dilshan

9:39 am on Aug 26, 2014 (gmt 0)

5+ Year Member



i want to add additional header info
 

Featured Threads

Hot Threads This Week

Hot Threads This Month