I'm using the perl code on my windows site. (visual basic) I'm trying to send an email with the following. Apparantely sendmail isn't available. I was told by my webhost that hmail was available. I just want to use SMTP to fire off some emails:
Can someone please help with this?use strict; use warnings; use Email::Sender::Simple qw(sendmail); use Email::Simple; use Email::Simple::Creator; use Email::Sender::Transport::SMTP; my $email = Email::Simple->create( header => [ To => 'sking@adomain.com.com', From => 'admin@mydomain.com', Subject => "sample message", ], body => "Greetings,\nTyped message (content)\nGoodbye.\n", ); my $transport = Email::Sender::Transport::SMTP->new({ host => 'mail.mydomain.com', sasl_username => 'admin@mpros.com', sasl_password => '**', }); sendmail($email, { transport => $transport }); exit;
In reply to SMTP mail not working for me by zlinkexchange
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |