Go Back   TechArena Community > Technology > Technology & Internet
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links



Use of Batch File to Send Email

Technology & Internet


Reply
 
Thread Tools Search this Thread
  #1  
Old 26-12-2009
samualres's Avatar
Member
 
Join Date: Nov 2009
Posts: 686
Use of Batch File to Send Email

Hi, I have recently come to know the different useful activities of the batch file. But, I want to know the technique from which I can send any type of email with the help of batch file. If anyone knows this, then please give me the code regarding it. I know that you can achieve this with the help of Outlook Express. But, I don't know how to achieve it with batch file.
Reply With Quote
  #2  
Old 26-12-2009
Jackson2's Avatar
Member
 
Join Date: Apr 2008
Posts: 2,268
Re: Use of Batch File to Send Email

I don't think that it is possible to send email with the help of batch file. As there would be need of initiating a SMTP connection in your operating system. And I think that only Professional or Server versions are able to do this. So, If you are using Windows xp operating system then it is not possible to achieve this. So, it is not possible to send email from your Windows xp operating system with the use of batch file.
Reply With Quote
  #3  
Old 26-12-2009
Techno01's Avatar
Member
 
Join Date: Apr 2008
Posts: 2,269
Re: Use of Batch File to Send Email

You need to use the following code in your batch file to send email with the help of it:
Code:
set EMAILFILE=%WD_TASKDIR%\..\System.Mail\Out\%WD_CONFIG%_%WD_CUREVT%.TMP
echo this is the subject > "%EMAILFILE%"
echo Techon^<t.doe@techarena.com^>;t.does^<t.does@techarena.com^> >> "%EMAILFILE%"
echo. >> "%EMAILFILE%"
echo ^<techono@techarena.com^> >> "%EMAILFILE%"
echo %WD_FILE_SHORTPATH% >> "%EMAILFILE%"
echo pecunia non olet >> "%EMAILFILE%"
echo Dear mam , >> "%EMAILFILE%"
echo Please find attached the file %WD_FILE_N% >> "%EMAILFILE%"
echo best regards, >> "%EMAILFILE%"
echo    %COMPUTERNAME% >> "%EMAILFILE%"
rem okay, the script is created, now rename it so the wdPostMan program processes it.
ren "%EMAILFILE%" %WD_CONFIG%_%WD_CUREVT%.wdmail
Reply With Quote
  #4  
Old 26-12-2009
Trio's Avatar
Member
 
Join Date: May 2008
Posts: 2,754
Re: Use of Batch File to Send Email

You can able to create and execute small process with the help of batch files, but it is not possible to send email with the help of batch file. For sending email you need to have the web browser and then you need to fill the values in that and then only you will able to send that mail. But, if you use batch file for it then it would not able to communicate on internet. So, I don't think that you will able to send any email on internet with the use of batch file.
Reply With Quote
  #5  
Old 26-12-2009
deveritt's Avatar
Member
 
Join Date: Apr 2008
Posts: 2,525
Re: Use of Batch File to Send Email

You want to use the batch file for sending email which is not possible. As it is not possible to open Simple Mail Acess Protocol for the use of sending email from your batch file if you use lower versions of the Windows. It may be possible with the Professional version and Server version. But, I don't think that you will able to get any type of batch file sample to do this. As you will require knowledge of ports and protocol to create such type of batch file.
Reply With Quote
  #6  
Old 26-12-2009
johnson22's Avatar
Member
 
Join Date: May 2008
Posts: 2,107
Re: Use of Batch File to Send Email

If you want to send email from batch file then you need to have high quality of knowledge in networking and internet. But, you can make use of following command line e-mail programs to achieve same.
  • Blat
  • GBMailer
  • MailSend
  • GetMail
Reply With Quote
Reply

  TechArena Community > Technology > Technology & Internet


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Use of Batch File to Send Email"
Thread Thread Starter Forum Replies Last Post
"send page by email" and "send link by email" disabled in Internet Explorer 8 Bindaas-ER Technology & Internet 4 27-02-2011 04:32 AM
Macro to convert file into PDF and then send via email MAGALY Software Development 5 09-12-2009 05:00 PM
can't send page by email or send link by email from IE8. windows mail default client Joe Schmoe Windows Vista Mail 8 04-09-2009 11:58 PM
How to send a large video file via email Yudhajit Technology & Internet 3 23-05-2009 08:25 PM
send to mail recipient ( as Attachment) the email will not send. kfoster@pfeinc.com MS Office Support 2 18-04-2007 10:22 PM


All times are GMT +5.5. The time now is 06:58 AM.