hi,
first with the contact form, i modified it to send an email to
the personn choosen with a select list.
contactform.php $mail_to = new XoopsFormSelect ("To:", "mail_to", $mail_to);
$options = array('pmckenzie@headhunters.org.au' =>'Founding Partner - Infrastructure and Strategy',
'samlam@headhunters.org.au'=>'Partner - External Competitions',
'kkikuyama@headhunters.org.au'=>'Partner - Internal Competitions',
'mbradshaw@headhunters.org.au'=>'Partner - Fund Raising and Treasury',
'csang@headhunters.org.au'=>'Partner - Networking Strategy',
'mtaylor@headhunters.org.au'=>'Partner - Competition Developer',
'it@headhunters.org.au'=>'I.T Team',
'marketing@headhunters.org.au'=>'Marketing Team',
'accounting@headhunters.org.au'=>'Accounting Team',
'pr@headhunters.org.au'=>'Public Relations Team');
$mail_to->addOptionArray($options);
that worked fine, then i modified
index.php[/b[
$mailto = $myts->stripSlashesGPC($mail_to);
echo $mailto;
.
.
.
$xoopsMailer =& getMailer();
$xoopsMailer->useMail();
//$xoopsMailer->setToEmails($xoopsConfig['adminmail']);
$xoopsMailer->setToEmails($mailto);
$xoopsMailer->setFromEmail($usersEmail);
$xoopsMailer->setFromName($xoopsConfig['sitename']);
$xoopsMailer->setSubject($subject);
$xoopsMailer->setBody($adminMessage);
$xoopsMailer->send();
when i pick an email form the list it is sent however it always go to the main mail accout of the web server headhunt@mydomain. even if the to: is not this address ! i checked the headers :/
when i send a email to the same picked address with gmail its working.
[b]headers wrong destinataire xoops From nobody@host.wojjie.net Wed Feb 02 07:00:43 2005
*Return-path:* <nobody@host.wojjie.net>
*Envelope-to:* samlam@headhunters.org.au
*Delivery-date:* Wed, 02 Feb 2005 07:00:43 -0500
*Received:* from nobody by host.wojjie.net with local (Exim 4.43)
id 1CwJBY-000763-L9
for samlam@headhunters.org.au; Wed, 02 Feb 2005 07:00:40 -0500
*To:* samlam@headhunters.org.au
*Subject:* headhunters.org.au - Contact Us Form user : admin
*Received:* from phpmailer ([203.217.78.117])
by www.headhunters.org.au with HTTP (phpmailer);
Wed, 2 Feb 2005 07:00:40 -0500
*Date:* Wed, 2 Feb 2005 07:00:40 -0500
*From:* headhunters.org.au <bla@host.wojjie.net>
*Message-ID:* <4cc7a424c3e5d2ee7ab1ea696d81377b@www.headhunters.org.au>
*X-Priority:* 3
*X-Mailer:* phpmailer [version 1.65]
*X-Mailer:* PHP/4.3.10
*MIME-Version:* 1.0
*Content-Transfer-Encoding:* 8bit
*Content-Type:* text/plain; charset="iso-8859-1"
*X-MailScanner-Information:* Please contact the ISP for more information
*X-MailScanner:* Found to be clean
*Status:* R
good one from
gmail rom coulix@gmail.com Wed Feb 02 07:03:54 2005
*Return-path:* <coulix@gmail.com>
*Envelope-to:* samlan@headhunters.org.au
*Delivery-date:* Wed, 02 Feb 2005 07:03:54 -0500
*Received:* from [64.233.184.195] (helo=wproxy.gmail.com)
by host.wojjie.net with esmtp (Exim 4.43)
id 1CwJEe-0007Au-P6
for samlan@headhunters.org.au; Wed, 02 Feb 2005 07:03:52 -0500
*Received:* by wproxy.gmail.com with SMTP id 49so86554wri
for <samlan@headhunters.org.au>; Wed, 02 Feb 2005 04:03:48 -0800 (PST)
*DomainKey-Signature:* a=rsa-sha1; q=dns; c=nofws;
s=beta; d=gmail.com;
h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type:content-transfer-encoding;
b=Kos/UWggyHbbgM4fvD0GFs9KCj8m34z8P1Yz0n+0efwU1yy9P0Is7ofIjRmE5EBlgtXvss8hX6yqQ95jFCAPMw62RYs76LaeyqTmvcfZjylaEWX5Di3PXblo8NZfKcvQjwLlKblNeFtbnwuk+orkDcqsqk8q4UL7yp7sSUdfHkg=
*Received:* by 10.54.59.37 with SMTP id h37mr93779wra;
Wed, 02 Feb 2005 04:03:48 -0800 (PST)
*Received:* from ?192.168.1.5? ([203.217.78.117])
by smtp.gmail.com with ESMTP id 67sm100929wra.2005.02.02.04.03.45;
Wed, 02 Feb 2005 04:03:48 -0800 (PST)
*Message-ID:* <4200C19E.5020907@gmail.com>
*Date:* Wed, 02 Feb 2005 23:03:42 +1100
*From:* coulix <coulix@gmail.com>
*User-Agent:* Mozilla Thunderbird 0.8 (X11/20041012)
*X-Accept-Language:* en-us, en
*MIME-Version:* 1.0
*To:* samlan@headhunters.org.au
*Subject:* test
*Content-Type:* text/plain; charset=ISO-8859-1; format=flowed
*Content-Transfer-Encoding:* 7bit
*X-MailScanner-Information:* Please contact the ISP for more information
*X-MailScanner:* Found to be clean
*Status:* R
and the second question is:
can we disable passwords ? allowing user to log in just with a login as primary key ?
thanks for your help