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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
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";
}