problems with Mail::Mailer

From: nikko (nodiseos_at_yahoo.com)
Date: 06/21/04


Date: 21 Jun 2004 09:19:49 -0700

I need to fix a script that sends out emails from my site using
Mail::Mailer and send using the smtp method (which involkes
Net::SMTP). The sender info is included in the headers and most people
have no problem. However, some companies have anti spam methods where
they reverse lookup the senders domain and for this they do not use
the header address but the SMTP MAIL FROM: address. Since this is not
set, our mail server sents this to posmaster@exbesv01.xyz.com which
results in the lookup failing on the recipient end and the email is
dropped.

I'd rather not change the script too much and was wonderng if it is
possible to make this work with Mail::Mailer.

The code is:
my $date = "$wday $mday $mon $year $hour:$min:$sec GMT";
my $mailserver = "smtp.xyz.com";
my $mailer = new Mail::Mailer('smtp', Server => $mailserver);

my(%headers) = ('To' => "$company",
                'Bcc' => "licenses\@amer.xyz.com",
                'From' => "ts-systems\@xyz.com",
                'Subject' => "Your Info",
                'Date' => $date,
                );
$mailer->open(\%headers);

I added
'mail' => "ts-systems\@xyz.com",
but this did not help.

Any ideas?



Relevant Pages

  • Problems with Mail::Mailer
    ... I need to fix a script that sends out emails from my site using ... Mail::Mailer and send using the smtp method (which involkes ... The sender info is included in the headers and most people ... I'd rather not change the script too much and was wonderng if it is ...
    (comp.lang.perl.misc)
  • Re: OT: spammers are using my domain again
    ... our virtual hosting servers and boom 150 returned emails from the ... Server load wasn't jumping ... Its a simple script that is written in php and can use a DB to retrieve ... they do anything) and the other hosting company that the file was ...
    (Fedora)
  • Re: Reading remote Session ID
    ... require that the IP that makes the request for the page be the same ... capability of the user, if it's a script the js will fail, so require ... I am using the free version of SPAMfighter for private users. ... It has removed 1384 spam emails to date. ...
    (alt.php)
  • Re: [PHP] limiting the amount of emails sent at a time in a batch send
    ... I want to limit these script two send 100 email and then pause for a few ... all the emails that are dated for today. ... I am using swift ... used for many unique mails. ...
    (php.general)
  • Re: Reading remote Session ID
    ... Perhaps you can just make it harder for the script by ... require that the IP that makes the request for the page be the same ... Using a session i nice here. ... It has removed 1384 spam emails to date. ...
    (alt.php)