Hi,
How do you send a CC:: with GT::Mail?
Nothing metioned in the docs.
use GT::Mail;
# Create and Sending
GT::Mail->send (
smtp => 'gossamer-threads.com',
to => 'scott@gossamer-threads.com',
from => 'scott@gossamer-threads.com',
subject => 'Hello!!',
msg => 'I am a text email'
) or die "Error: $GT::Mail::error";
# Parsing and sending
my $mail = new GT::Mail (debug => 1);
# Parse an email that is in a file called mail.test my $parser = $mail->parse ('mail.test') or die "Error: $GT::Mail::error"; # Change who it is to $parser->set ("to", 'scott@gossamer-threads.com');
# Add an attachment to it $mail->attach ( type => 'text/plain', encoding => '-guess', body_path => 'Mail.pm', filename => 'Mail.pm' ); # Send the email we just parsed and modified $mail->send (sendmail => '/usr/sbin/sendmail') or die "Error: $GT::Mail::error";
How do you send a CC:: with GT::Mail?
Nothing metioned in the docs.
use GT::Mail;
# Create and Sending
GT::Mail->send (
smtp => 'gossamer-threads.com',
to => 'scott@gossamer-threads.com',
from => 'scott@gossamer-threads.com',
subject => 'Hello!!',
msg => 'I am a text email'
) or die "Error: $GT::Mail::error";
# Parsing and sending
my $mail = new GT::Mail (debug => 1);
# Parse an email that is in a file called mail.test my $parser = $mail->parse ('mail.test') or die "Error: $GT::Mail::error"; # Change who it is to $parser->set ("to", 'scott@gossamer-threads.com');
# Add an attachment to it $mail->attach ( type => 'text/plain', encoding => '-guess', body_path => 'Mail.pm', filename => 'Mail.pm' ); # Send the email we just parsed and modified $mail->send (sendmail => '/usr/sbin/sendmail') or die "Error: $GT::Mail::error";