Gossamer Forum
Home : Products : Gossamer Links : Discussions :

GT::Mail->send with both cc and bcc?

Quote Reply
GT::Mail->send with both cc and bcc?
Hi,

I am using LinksSQL 2.2.x. I am trying to send an email with both cc and bcc. Is this worked with GT::Mail? I searched for some threads but found that it is used with just one cc or bcc not both.

Any suggestions?

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] GT::Mail->send with both cc and bcc? In reply to
Hi,

Should work =)

Code:
require GT::Mail;
$GT::Mail::error ||= ''; # Silence -w
GT::Mail->send (
smtp => $CFG->{db_smtp_server},
sendmail => $CFG->{db_mail_path},
from => $CFG->{db_admin_email},
subject => $subject,
to => $send_addy,
bcc => $bcc_send_addy,
cc => $cc_send_addy,
msg => $message,
debug => $Links::DEBUG,
type => 'text/html',
) or Links::fatal ("Unable to send mail: $GT::Mail::error");

Cheers

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] GT::Mail->send with both cc and bcc? In reply to
Yes, it works fine.

Thanks!

Cheers,

Dat

Programming and creating plugins and templates
Blog