Gossamer Forum
Quote Reply
gT::Mailer
Hi,

Anyone have any idea why this:
GT::Mail->send (
sendmail => $CFG->{db_mail_path},
to => $USER->{Email},
from => $CFG->{db_admin_email},
subject => 'TEXT EMAIL',
msg => ""
);

GT::Mail->send (
sendmail => $CFG->{db_mail_path},
to => $CFG->{db_admin_email},
from => $USER->{Email},
subject => 'TEXT EMAIL',
msg => ""
);


Generates this error:

A fatal error has occured:
GT::Mail::Parts (32353): Wrong argument passed to this subroutine. Usage: $obj->set ($tag, $value, $pos); $pos is optional but $tag and $value is not at admin/GT/Mail/Parts.pm line 170.


Please enable debugging in setup for more details.


BTW Sending the first email on its own works fine.

Last edited by:

giovanni: Aug 1, 2002, 2:24 PM
Quote Reply
Re: [giovanni] gT::Mailer In reply to
OK, I have this sorted now. The $USER->{Email} tag was blank so that's why it complained.