PirateBagel Posted May 3, 2007 Share Posted May 3, 2007 I want every e-mail that is sent from my host to include a header image. I couldn't find a more appropriate forum to ask this in, considering that I don't even know how I would go about this. Would this be serverside? Can a PHP script intercept all mails and include the image? Or would something like this have to be client side? If there is a more appropriate forum, please move this thread. Thanks for the help! Quote Link to comment https://forums.phpfreaks.com/topic/49866-is-this-possible/ Share on other sites More sharing options...
PirateBagel Posted May 7, 2007 Author Share Posted May 7, 2007 If anyone could just point me in the right direction for this I'd be very happy. Quote Link to comment https://forums.phpfreaks.com/topic/49866-is-this-possible/#findComment-247663 Share on other sites More sharing options...
MadTechie Posted May 7, 2007 Share Posted May 7, 2007 so you want to send an email with an image.. so thats a html email with attachments look up phpmailer Quote Link to comment https://forums.phpfreaks.com/topic/49866-is-this-possible/#findComment-247666 Share on other sites More sharing options...
PirateBagel Posted May 7, 2007 Author Share Posted May 7, 2007 I see that, but I want to do it to every email that is sent from my domain. I don't think phpmailer does that. Quote Link to comment https://forums.phpfreaks.com/topic/49866-is-this-possible/#findComment-247673 Share on other sites More sharing options...
MadTechie Posted May 7, 2007 Share Posted May 7, 2007 if their sent from your scripts then you can but will probably need to change all the routines of you don't handle them yourself then your need some server software (from what i know) Quote Link to comment https://forums.phpfreaks.com/topic/49866-is-this-possible/#findComment-247677 Share on other sites More sharing options...
trq Posted May 8, 2007 Share Posted May 8, 2007 This sounds more like a mail server issue than that of PHP. Is PHP used to send all these emails? Quote Link to comment https://forums.phpfreaks.com/topic/49866-is-this-possible/#findComment-247752 Share on other sites More sharing options...
neel_basu Posted May 8, 2007 Share Posted May 8, 2007 Ys Its possible with Zigmoyd mail Class. YOu will find it on http://zigmoyd.sourceforge.net/man/mail.php Please see http://zigmoyd.sourceforge.net/man/index.php for Installation and Instruction. Adjust the setup_mail.php Properly Here you need to do this in setup_mail.php var $mail_header = "<img src = "http://yoursite.com/img.png" />"; And each and every email you will send using its mail will contain this Image as Header. Quote Link to comment https://forums.phpfreaks.com/topic/49866-is-this-possible/#findComment-247836 Share on other sites More sharing options...
PirateBagel Posted May 8, 2007 Author Share Posted May 8, 2007 Thank you! I'll be looking into this right now, i'll let you know if it works or not. Im also going to go donate $10 to the site right now, I said I would awhile back but didnt get around to putting money in my paypal until a week ago. Quote Link to comment https://forums.phpfreaks.com/topic/49866-is-this-possible/#findComment-248250 Share on other sites More sharing options...
neel_basu Posted May 8, 2007 Share Posted May 8, 2007 The Current Version is Beta and has some Bugs So it has Some Bugs. So Please Download the Previous version 1.0.0.1 as this version works well Quote Link to comment https://forums.phpfreaks.com/topic/49866-is-this-possible/#findComment-248269 Share on other sites More sharing options...
PirateBagel Posted May 8, 2007 Author Share Posted May 8, 2007 The Current Version is Beta and has some Bugs So it has Some Bugs. So Please Download the Previous version 1.0.0.1 as this version works well I did download that version, and I did insert the code (into setup_mail.php) you told me and changed it to the location of my image. I set the path in config.php correcty, but its still not working. I've gone through and tried multiple things, and made sure everything was in its correct place. When you say, "Adjust the setup_mail.php properly" what exactly do you mean? Quote Link to comment https://forums.phpfreaks.com/topic/49866-is-this-possible/#findComment-248437 Share on other sites More sharing options...
neel_basu Posted May 9, 2007 Share Posted May 9, 2007 First you need to install it properly. for that download the proper version (PHP 4/5) Then See this page http://zigmoyd.sourceforge.net/man/index.php To see the Installation and Usage Instruction . You need to Install it properly . Look at the Step 3 on Installation Steps carefully. thats the Most Important Step You need to use '/path/to' not '\path\to' and You see in that Page there is an Example on how to use it. And open the setup_mail.php and see at the bottom there is ------------------------------------------------------- var $timeout = 5;//Set The timeout var $mail_header = "www.yoursite.com\n---------\n"; var $mail_footer = "\nMail sent Using Zigmoyd Php Library"; ------------------------------------------------------- Change those Header and Footers . Quote Link to comment https://forums.phpfreaks.com/topic/49866-is-this-possible/#findComment-248753 Share on other sites More sharing options...
PirateBagel Posted May 10, 2007 Author Share Posted May 10, 2007 I've read and followed the instructions carefully, but I don't know if were on the same page here. This isn't from just webmail, I want this to be included in every email (those sent from outlook, thunderbird, etc..) Is this script capable of doing that? Quote Link to comment https://forums.phpfreaks.com/topic/49866-is-this-possible/#findComment-249935 Share on other sites More sharing options...
neel_basu Posted May 10, 2007 Share Posted May 10, 2007 Whats the Error you are Seeing ?? Quote Link to comment https://forums.phpfreaks.com/topic/49866-is-this-possible/#findComment-249980 Share on other sites More sharing options...
per1os Posted May 10, 2007 Share Posted May 10, 2007 The only way I can see this working is if on your SMTP mail server you add custom code to it that does this. This should have nothing to do with PHP since you are referring to other applications to send mail. This has to be done via the SMTP mail server. I suggest you find out what server you are using and do some google searching on extensions or hacks to it to get your derivied result. As of right now with the information you have given it is out of PHP's hands. Quote Link to comment https://forums.phpfreaks.com/topic/49866-is-this-possible/#findComment-249982 Share on other sites More sharing options...
neel_basu Posted May 10, 2007 Share Posted May 10, 2007 This isn't from just webmail, I want this to be included in every email (those sent from outlook, thunderbird, etc..)OOps I've overlooked this section . I think you wanna make a mail service providor Website ? Thats not possible by PHP. You have to reconfigure your SMTP Server Quote Link to comment https://forums.phpfreaks.com/topic/49866-is-this-possible/#findComment-249993 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.