Gossamer Forum
Quote Reply
Sending email?
Ok..I've just been reading up on the mail sending feature with GT modules...however, it seems that you need to decide what type of sending process you want to use first, correct? How are we meant to do this? I was hoping it would be something simple like;

GT::Mail::send(
$email_from => 'from@someone.com',
$subject => 'somethging here',
$message => ' your message can go here'
);

But it looks like I'm wrong...

Am I? Unsure How would you guys do it?

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Sending email? In reply to
Look at the bottom of Links::User::Add

Code:
require GT::Mail;
$GT::Mail::error ||= ''; # Silence -w
GT::Mail->send (
smtp => $CFG->{db_smtp_server},
sendmail => $CFG->{db_mail_path},
from => $from,
subject => $subject,
to => $to,
msg => $msg,
debug => $Links::DEBUG
) or die "Unable to send mail: $GT::Mail::error";
}