Wrox Programmer Forums
|
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 8th, 2004, 04:11 PM
kg kg is offline
Registered User
 
Join Date: Nov 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Envelope-To:

Hi,

I've got one more problem. I'm making a mailing list manager, and I would like the "To"-field in the mail to be set to the list-address. This is possible and should mean that the "Envelope-To" should be set to the receiver-address and the mail posted to this address. How do I achieve this?

I'm using PHPMailer, but can of course edit the code if that's necessary. I just need to know how I solve this. Any ideas is appreciated.

Kind regards,

Kjell Gaute Grude
 
Old November 10th, 2004, 11:56 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

What are you using to compose messages? If you're using something like the PEAR packages Mail_MIME and Mail all you have to do is define the 'Envelope-To' header as part of the array of headers.

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
 
Old November 10th, 2004, 01:30 PM
kg kg is offline
Registered User
 
Join Date: Nov 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, it is. It's a _very_ simple change in the PHPMailer-code. Arg, I kept reading != as == yesterday and the day before that! With fresh eyes today I finally saw that mistake, so now everything is 100%. ;)

Thanks,

Kjell Gaute
 
Old November 10th, 2004, 05:02 PM
kg kg is offline
Registered User
 
Join Date: Nov 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Let's say the subject contains foreign characters and I add this:

$subject = "[test]".$subject;

Why is the code then send as quoted-portable (?iso-8859-1?Q?) ?? If I echo $subject it shows normally, but it's received as quoted-portable. This only happens when I add something to the title in PHP before I send the mail. If just parse the subject on to PHPMailer without changes it's working perfectly.

I'm using Mail_IMAP and PHPMailer.

Ideas?

Thanks,

Kjell Gaute
 
Old November 10th, 2004, 05:17 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

I've never encountered that. I'm not familar with the PHPMailer project. Sounds like a good question for the PHPMailer guys.

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design





Similar Threads
Thread Thread Starter Forum Replies Last Post
SOAP envelope namespace not shown anboss XSLT 5 August 25th, 2008 04:43 PM
Processing MS Dynamics XML Envelope Neal XSLT 2 May 22nd, 2008 05:57 AM
CMS Envelope problem chapter 9 luke.koziol BOOK: Beginning Cryptography with Java 1 May 6th, 2007 05:15 PM
how to write multiple namespaces in soap envelope monuindia2002 XML 0 March 1st, 2006 02:29 AM
Controlling Outgoing Custom XML Envelope Content RaminS Biztalk 1 June 12th, 2003 06:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.