Miles, I see that tha manual talks about a trusted sender list (/etc/mail/trusted-users). Do you know if there is something similar for a Windows NT server? Cheers George > -----Original Message----- > From: Miles Thompson [mailto:milesthom@xxxxxxxxx] > Sent: 26 November 2007 8:44 pm > To: PHP List > Subject: Re: Emailing dilemma > > > George, > > Had this problem a year ago, although I'm not using PEAR. Have a look at > http://ca3.php.net/manual/en/function.mail.php > and this down in the additional_parameters(optional) section: > > "For example, this can be used to set the envelope sender address > when using > sendmail with the *-f* sendmail option." > > It is not well documented, don't know if this helps, but it may get you > started. > > Cheers - Miles > > On Nov 26, 2007 3:21 PM, George Pitcher > <george.pitcher@xxxxxxxxxxx> wrote: > > > Hi, > > > > I have almost 30 websites that use PEAR::Mail to send emails on > behalf of > > users at universities (one site for each) to lecturers at the same > > university. > > > > The problem I have is that if a lecturer sets an 'Out of Office' status, > > it > > gets bounced back to my server instead of to the user at the university. > > > > I did have the 'From' set to the user's email address, but that wasn't > > very > > successful ats it caused problems with the universities' anti-spam > > systems. > > > > I've tried using ini_set('sendmail_from',$useremail); but that doesn't > > seem > > to work either. > > > > Can anyone point me in the right direction, please? > > > > > > Cheers > > > > George in Edinburgh > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php