Gossamer Forum
Home : Products : DBMan : Customization :

No sendmail!

Quote Reply
No sendmail!
How can I configure sendmail to just use a remote SMTP server

- or -

Find a UNIX/LINUX solution to send mail via SMTP in DBMan



Any ideas???
Quote Reply
Re: [mabel] No sendmail! In reply to
# Send email when new record is added

my $mailer = new Mailer ( { smtp => 'SMTPSERVER' } ) or die "Can't init mailer: $Mailer::error";

$mailer->send ( {
to => '$in{'Email'},',
from => 'Your Email Address',
subject => "Record Added to Database",
msg => "Message"
} )
or die "Can't send mail: $Mailer::error";# Send email when new record is added

my $mailer = new Mailer ( { smtp => 'SMTPSERVER' } ) or die "Can't init mailer: $Mailer::error";

$mailer->send ( {
to => '$in{'Email'},',
from => 'Your Email Address',
subject => "Record Added to Database",
msg => "Message"
} )
or die "Can't send mail: $Mailer::error";

This is working except in '$in{'Email'},', the 's cancel eachother out...any ideas...check this here:

http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=3440

It would seem simple...just replace the 's with "s, but that causes an error. the script wants 's...help me change that

Last edited by:

mabel: Dec 11, 2002, 5:45 PM
Quote Reply
Re: [mabel] No sendmail! In reply to
nevermind all this post 3440 works perfectly....thank you...that is all