1
coulix
2 questions about xoops mail and pass
  • 2005/2/2 12:32

  • coulix

  • Just popping in

  • Posts: 25

  • Since: 2005/1/18


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:* Wed02 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.auWed02 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);
   
Wed2 Feb 2005 07:00:40 -0500
*Date:* Wed2 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/plaincharset="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:* Wed02 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.auWed02 Feb 2005 07:03:52 -0500
*Received:* by wproxy.gmail.com with SMTP id 49so86554wri
      
for <samlan@headhunters.org.au>; Wed02 Feb 2005 04:03:48 -0800 (PST)
*
DomainKey-Signature:* a=rsa-sha1q=dnsc=nofws;
      
s=betad=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;
      
Wed02 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;
      
Wed02 Feb 2005 04:03:48 -0800 (PST)
*
Message-ID:* <4200C19E.5020907@gmail.com>
*
Date:* Wed02 Feb 2005 23:03:42 +1100
*From:* coulix <coulix@gmail.com>
*
User-Agent:* Mozilla Thunderbird 0.8 (X11/20041012)
*
X-Accept-Language:* en-usen
*MIME-Version:* 1.0
*To:*  samlan@headhunters.org.au
*Subject:* test
*Content-Type:* text/plaincharset=ISO-8859-1format=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

Login

Who's Online

160 user(s) are online (99 user(s) are browsing Support Forums)


Members: 0


Guests: 160


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits