Welcome to WebmasterWorld Guest from 54.197.151.150

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

adding Email Header

adding Email Header

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

New User

5+ Year Member

joined:July 25, 2010
posts: 3
votes: 0


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);
7:23 am on Aug 13, 2014 (gmt 0)

Senior Member

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

joined:July 3, 2006
posts: 3123
votes: 0


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?
6:01 am on Aug 16, 2014 (gmt 0)

New User

5+ Year Member

joined:July 25, 2010
posts: 3
votes: 0


Yes. it is PHPMailer Version 5.2.7
12:06 pm on Aug 16, 2014 (gmt 0)

Senior Member

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

joined:July 3, 2006
posts: 3123
votes: 0


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.
9:39 am on Aug 26, 2014 (gmt 0)

New User

5+ Year Member

joined:July 25, 2010
posts: 3
votes: 0


i want to add additional header info
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members