Perl: Send mail via SMTP


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Perl: Send mail via SMTP
# 1  
Old 04-17-2014
Perl: Send mail via SMTP

I have a existing perl program , in this program it will output a email address list to a variable ( $email_list ) , mail content to a variable ( $email_content ) , if I want to send all email to these email address with corresponding content , would aadivse how to write a perl script ?

thanks

Last edited by jim mcnamara; 04-17-2014 at 09:26 AM..
# 2  
Old 04-17-2014
You say you have an existing perl program that sends email. Does it work? What do you have so far?
# 3  
Old 04-18-2014
Quote:
Originally Posted by blackrageous
You say you have an existing perl program that sends email. Does it work? What do you have so far?
thanks reply ,

I mean I have existing perl program tht output email address and content to the variable , it can not do send mail , what I need is add a function to send mail via SMTP .
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies

2. Shell Programming and Scripting

not able to send the mail through perl script

I have written small piece of code to send mail through perl script.Below is the code.I have executed it as # perl perlmail.pl and the code got executed with no errors. Still have not received any mail. Also I have installed Mail::send module from CPAN directly but no luck. Could any mail... (2 Replies)
Discussion started by: giridhar276
2 Replies

3. Shell Programming and Scripting

Send mail using perl cgi

hi everyone , i want to send e-mail using Perl CGI. i am new to Perl please tell me the solution. I dont have any idea about sending mail through Perl : Please can you give me appropriate code for sending the mail Please help me out....??? (1 Reply)
Discussion started by: Navrattan Bansa
1 Replies

4. AIX

Enable send email through smtp - exchange on AIX 6.1

Please help, i can not to send email from AIX 6.1 to outside network through STMP - Exchange. Any one can help ? (1 Reply)
Discussion started by: ichsan
1 Replies

5. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

6. Programming

Send mail via SMTP

If anybody has a c/c++ code of send mail via smtp with or without authorization for Linux, I will be very grateful. Thank's. (0 Replies)
Discussion started by: LuckyStr
0 Replies

7. Windows & DOS: Issues & Discussions

Send mail using SMTP

Hi I need to send email from batch script, using SMTP from my exchange server. Can any one send me command line of that should be non interactive. I did using MAPISEND, but i should not use it for some reasons. I have to send this using SMTP for Microsoft Exchange Server. mapisend -u... (2 Replies)
Discussion started by: mohantmk
2 Replies

8. UNIX for Dummies Questions & Answers

Send email using Exchange as SMTP

Hi. I have a Tru64 Unix V5.1 server that I would like to send emails using an exchange server we have on the same network as the smtp of this machine. What are the requirements/configuration that I need to do in order to make this possible. We are planning on emailing error messages and such from... (2 Replies)
Discussion started by: fidodido
2 Replies

9. IP Networking

SMTP mail

I want to send e-mail from my yahoo account. But mail -s "title" *@yahoo.com < line.txt is from my local address to *@yahoo.com. How can i do this? (1 Reply)
Discussion started by: Euler04
1 Replies

10. UNIX for Advanced & Expert Users

SMTP going to Junk Mail

Hi All I have a slight problem with sending mails from my server - if I send mails to Yahoo! or Hotmail, either direct via the SMTP server, or through sendmail, the email ends up in the account holder's Junk Mail folder. Is something in the headers causing these emails to be treated as junk?... (3 Replies)
Discussion started by: saabir
3 Replies
Login or Register to Ask a Question