473,320 Members | 2,000 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Needed Help in using SendMail.pl

hi

m having a script to send mail.
can u please tell me wat ll be the preconditions and wat needs to be installed inaddition to perl

i hav net and perl installed
Oct 11 '06 #1
8 5445
hi

m having a script to send mail.
can u please tell me wat ll be the preconditions and wat needs to be installed inaddition to perl

i hav net and perl installed

i have a script to send a mail through microsoft outlook.
if outlookn is installed on your machine then you can you Win32::OLE module of perl for sending mail through outlook.

if you want then I can post it
Oct 12 '06 #2
Hi Friends,

As I am also having the same problem in my widows machine. Actually I have a linux machi9ne where perl is installed and there is the sendmail.pm file available but in windows its not detecting that file so I think this wil be helpfull for me also . So if possible then please post the module for windows. I will be gratefull to you.

Regards,
Chittaranjan. :)
Oct 12 '06 #3
geek491
21
hi

m having a script to send mail.
can u please tell me wat ll be the preconditions and wat needs to be installed inaddition to perl

i hav net and perl installed
Hi Nagendra

If your intention is to send a mail via a perl script and if u have a mail box server then this code will help.

use Mail::SendEasy ;

my $mail = new Mail::SendEasy(
smtp => 'enter your mail box server address here' ,
user => 'user name for mail box' ,
pass => password for mail box ,
) ;

my $status = $mail->send(
from => 'abc@abc.com' ,
from_title => 'Name' ,
reply => 'xyz@xyz.com' ,
error => 'xyz@xyz.com' ,
to => 'xyz@xyz.com' ,
cc => '' ,
subject => "MAIL Test" ,
msg => "The Plain Msg..." ,
html => "<b>The HTML Msg...</b>" ,
msgid => "0101" ,
anex => ‘c:\log.txt’
) ;

if (!$status) { print $mail->error ;}

If any issues let me know it at geek491@yahoo.co.in
Oct 13 '06 #4
Hi geek491,

The code you have posted here is not working in my windows system. Actually I have installed Active Perl in my windows system where it is not able to find the sendmail.pm file also your sendeasy.pm file. So is there any solution for this please let me know I will be waiting for this.


Thanks
Chittaranjan :)
Oct 16 '06 #5
geek491
21
Hi geek491,

The code you have posted here is not working in my windows system. Actually I have installed Active Perl in my windows system where it is not able to find the sendmail.pm file also your sendeasy.pm file. So is there any solution for this please let me know I will be waiting for this.


Thanks
Chittaranjan :)

Have to tried to install that module? If you have not installed this module then the perl interpreter wont be able to find the sendeasy.pm file.

To install the module in active perl.. goto start--> active perl --> perl package manager->

you will be taken to a command prompt which looks like this.


ppm>

now here you need to type in

ppm> install Mail-SendEasy

This will install the module provided you have internet connection. If you work for some company then if internet is blocked you can set the following environment variables in your system and perl will be able to install the modules.


HTTP_proxy http://abc.com:8080
HTTP_proxy_user Your proxy userid
HTTP_proxy_pass Your proxy password

to do this right click on my computer and select properties --> advanced --> environment variables there under user variables you can declare them.

Once the module is installed you will have no problem running the above script. Remember perl doesnt come with all the modules you need to externally install some to get the job done.
Oct 17 '06 #6
Hi geek491,

First of all thanks a lot for helping me. But still I am having some problems when I am trying to do as you had said ran the command you have given in the perl package manager then it is asking for proper port and as you have said i had set the environment variables to the links you have posted here. But its not detecting that. So what wil be next solution for this please let me know.

Thanks Again,
Chittaranjan :)
Oct 17 '06 #7
geek491
21
Hi geek491,

First of all thanks a lot for helping me. But still I am having some problems when I am trying to do as you had said ran the command you have given in the perl package manager then it is asking for proper port and as you have said i had set the environment variables to the links you have posted here. But its not detecting that. So what wil be next solution for this please let me know.

Thanks Again,
Chittaranjan :)
Quite a pickle :)
Ok will search for nmake.exe file in google and download it. Execute it and you will get 3 files...now copy paste these files inside perl's bin folder.

now goto www.cpan.org --> modules and distributions.... search for the module that u want.... Mail::SendEasy

inside the page there will be link Download: Mail-SendEasy-1.2.tar.gz

click it and download the module to your system. Then unzip it.... using a command prompt go to that folder that u unzipped now and then type these commands in order.


c:\folder_name\>perl makefile.pl
c:\folder_name\>nmake
c:\folder_name\>nmake test
c:\folder_name\>nmake install

Make sure no errors pop up...

this will install the perl module the hard way but it will work. :)
Oct 17 '06 #8
Hi geek491,

Thanks a lot that works great. as per your instruction I have installed that and I am able to send mail properly. I have also installed the sendmail package.

But one more problem I have now that is I have a form in .pl file where i am entering the data and after entering data when I am clicking submit button then it will send a mail to the corresponding address i have given in the coding itself.
So there I am using the sendmail.pm because there i have to make some coding differences to use sendmail and sendeasy modules. when I am running the code then no problem in form but after clicking submit button i am getting error "Malformed multipart POST" where it suppose to send an mail to the address I have given. So can you please tell me what will be the problem now.

You are simply great :) :) :)

Chittaranjan :)
Oct 17 '06 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Babaloo | last post by:
Hello, I am having a problem with PHP 4.2.2 and RH 8. PHP is working fine except email. I have a test script to send mail, I have sendmail_path = '/usr/lib/sendmail -t -i' set in php.ini,...
4
by: jim | last post by:
Hello, I am having a problem w/SendMail reporting: " No recipient addresses found in header". Funny thing is though, I properly recieve the email message. Thanks for your help. -jim
3
by: David P. Jessup | last post by:
Good day to all. I have found out my webhost doesn't support CDO or CDONTS(Sun ONE Active Server Pages with SpikePack unavailable). So, my question, is it possible to write an ASP page to call...
1
by: Gaz | last post by:
Hey. I looked at the Sendmail help and did not find a property where i can get an "ok" signal when the email is finally sent. I need something like that to show a "Processing, please stand by"...
6
by: atinti | last post by:
I'm tyring to write something that will send a simple email using Perl so far this is what I have #!/usr/bin/perl -w use strict; my $executable = "saplotus.exe'; my $server =...
0
by: sudipmondal440 | last post by:
import javax.mail.*; import javax.mail.internet.*; import java.util.*; import javax.activation.*; import javax.swing.text.*; import javax.swing.*; import java.io.*; import java.awt.*; ...
0
by: s2rinivasan | last post by:
I am srinivasan I sent a last message hoe to trouble shoot httpd passwd acces problum. In that I didn't menson that OS=RedHat LINUX EL4-2.6.9-5. This question also in the same version. In...
3
by: zaxxon25 | last post by:
I am having an issue with attaching 2 attachments one xip and other excel file with email and sending using perl sendmail. I tried to look on various forums and everywhere i get advice using MIME ::...
3
by: digitaldiva | last post by:
Hi I am new here and once upon a time I worked with Perl, now I am trying again and need some help: I wrote a Perl script a few years ago that opened an order entry TXT file and sent each...
2
jhoborg
by: jhoborg | last post by:
Hello all, So I'm having trouble using sendmail in a CGI script as the topic title says. Here's what I'm trying to accomplish: User fills out a form, submits it, my CGI script receives this...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.