homepage Welcome to WebmasterWorld Guest from 54.204.182.118
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
adding Email Header
adding Email Header
dilshan



 
Msg#: 4695058 posted 6:16 am on Aug 13, 2014 (gmt 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);

 

penders

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



 
Msg#: 4695058 posted 7:23 am on Aug 13, 2014 (gmt 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?

dilshan



 
Msg#: 4695058 posted 6:01 am on Aug 16, 2014 (gmt 0)

Yes. it is PHPMailer Version 5.2.7

penders

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



 
Msg#: 4695058 posted 12:06 pm on Aug 16, 2014 (gmt 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.

dilshan



 
Msg#: 4695058 posted 9:39 am on Aug 26, 2014 (gmt 0)

i want to add additional header info

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved