Hi All,
I'm trying to send emails via a windows server that I only have low level ftp access to using SendEasy as that's what the hosts recommended using. I've got it to find SendEasy eventually but not it doesn't seem to find the functions in SendEasy. Here's my code :-
#!/usr/bin/perl
use CGI;
use warnings;
use strict;
use CGI::Carp qw/fatalsToBrowser/;
use lib 'Mail::SendEasy';
my $query = new CGI;
print $query->header();
print "\@INC is @INC\n<br>";
my $status = Mail::SendEasy::send(
smtp => 'localhost' ,
user => 'foo' ,
pass => 123 ,
from => 'sender@foo.com' ,
from_title => 'Foo Name' ,
reply => 're@foo.com' ,
error => 'error@foo.com' ,
to => 'recp@domain.foo' ,
cc => 'recpcopy@domain.foo' ,
subject => "MAIL Test" ,
msg => "The Plain Msg..." ,
html => "<b>The HTML Msg...</b>" ,
msgid => "0101" ,
) ;
And here's the error message:-
Undefined subroutine &Mail::SendEasy::send called at d:\domains\sarahsfleeces.co.uk\ line 17.
So what's up I can't work it out!
many thanks
Sarah
I'm trying to send emails via a windows server that I only have low level ftp access to using SendEasy as that's what the hosts recommended using. I've got it to find SendEasy eventually but not it doesn't seem to find the functions in SendEasy. Here's my code :-
#!/usr/bin/perl
use CGI;
use warnings;
use strict;
use CGI::Carp qw/fatalsToBrowser/;
use lib 'Mail::SendEasy';
my $query = new CGI;
print $query->header();
print "\@INC is @INC\n<br>";
my $status = Mail::SendEasy::send(
smtp => 'localhost' ,
user => 'foo' ,
pass => 123 ,
from => 'sender@foo.com' ,
from_title => 'Foo Name' ,
reply => 're@foo.com' ,
error => 'error@foo.com' ,
to => 'recp@domain.foo' ,
cc => 'recpcopy@domain.foo' ,
subject => "MAIL Test" ,
msg => "The Plain Msg..." ,
html => "<b>The HTML Msg...</b>" ,
msgid => "0101" ,
) ;
And here's the error message:-
Undefined subroutine &Mail::SendEasy::send called at d:\domains\sarahsfleeces.co.uk\ line 17.
So what's up I can't work it out!
many thanks
Sarah