473,698 Members | 2,503 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help required for sending multiline mail using Blat

5 New Member
Hi,

I am using a C# code to call blat and send mail.
When I send mails with long sentences, the mail automatically is send with multiple lines.
However, certain times the body and format of the mail has to look like the following (Have put the body in double quotes)

"The following numbers have been Un-validated for - PARIS
20 misrar 31/05/2007 14:13:52
55 misrar 31/05/2007 14:13:52
75 misrar 31/05/2007 14:13:52
90 misrar 31/05/2007 14:13:52
91 misrar 31/05/2007 14:13:52
92 misrar 31/05/2007 14:13:52
95 misrar 31/05/2007 14:13:52
96 misrar 31/05/2007 14:13:52
97 misrar 31/05/2007 14:13:52"

The command line syntax formed is like this

D:\Apps\Blat\bl at.exe - -body "The following numbers have been Un-validated for report area - PARIS \r\n20 misrar 31/05/2007 14:13:52\r\n55 misrar 31/05/2007 14:13:52\r\n75 misrar 31/05/2007 14:13:52\r\n90 misrar 31/05/2007 14:13:52\r\n91 misrar 31/05/2007 14:13:52\r\n92 misrar 31/05/2007 14:13:52\r\n95 misrar 31/05/2007 14:13:52\r\n96 misrar 31/05/2007 14:13:52\r\n97 misrar 31/05/2007 14:13:52\r\n98 misrar 31/05/2007 14:13:52 \" -t "rishikesh.misr a@asia.bnpparib as.com" -f "rishikesh.misr a@asia.bnpparib as.com" -server "servername " -subject "Daily Validation : Portfolios un-validated PARIS"

If you would notice, we have tried to put \r\n so that we get the mail in desired format as shown above.
Before sending the mail, the shell makes a bat file and the format of the blat command line syntax looks as below.
The format of the body is fine till here.

D:\Apps\Blat\bl at.exe - -body "The following numbers have been Un-validated for - PARIS
1020 misrar 31/05/2007 14:13:52
1155 misrar 31/05/2007 14:13:52
1175 misrar 31/05/2007 14:13:52
1290 misrar 31/05/2007 14:13:52
1291 misrar 31/05/2007 14:13:52
1292 misrar 31/05/2007 14:13:52
1295 misrar 31/05/2007 14:13:52
1296 misrar 31/05/2007 14:13:52
1297 misrar 31/05/2007 14:13:52 " -t "rishikesh.misr a@asia.bnpparib as.com"
-f "rishikesh.misr a@asia.bnpparib as.com" -server "servername " -subject "Daily Validation : numbers un-validated PARIS"

However when this bat file is executed the sending the mail fails.
Even if I try to run the command line syntax directly on dos prompt, the
mail is not sent.
I am sure it is something to do with the "multi line" body of the mail.

Can you suggest a way how to send this mail? What changes do I need to make in the command line syntax so that the mail is sent?

Regards

Rishikesh Misra
[email removed]
Sep 3 '07 #1
0 2083

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

Similar topics

14
9058
by: Christophe Cerbourg | last post by:
hi, Bonjour, I'm using PHPMailer class to send mails and it works fine for HTML ones. But I can't manage to send correctly a text formatted mail... I tried this : - $message = "first line*\n*second line"; - $message = "first line*\r\n*second line"; - $message = "first line*".chr(13).chr(10)*second line";
3
7663
by: Yvonne | last post by:
Would like to implement Blat on SQL Server 2000. I'm looking for example syntax for setting up BLAT with xp_cmdshell. TIA
8
5473
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
8
2355
by: WindAndWaves | last post by:
Hi Gurus I am trying to send a newsletter from Access. Can anyone tell me what is the simplest way to send an email from Access? I would prefer not to use outlook, because this gives me all these security warnings and besides, I would prefer not to look outlook at all, so that people with Access RT could also use my code. Is there a way to send an email from DOS perhaps?
2
2109
by: GAVO-UK | last post by:
Hello everyone, using A2003 I would like to send via email a txt file located on the c:\ drive which I create by using a transfer text procedure. My problem is that the file name is variable, such as RefMMDDHHmm where REF is a fixed value, so..... the question? How can I adapt this code that I normally use to send email with attachments, to send the txt file when I only know the first 3
6
4991
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing for long running reports. When the processing is complete it uses crystal reports to load a template file, populate it, and then export it to a PDF. It works fine so far....
3
2785
by: Keith Hutchison | last post by:
I've written an utility that enables me to send SMTP mail from MS Access using DDE and a custom VBA object.. I've got a client who is unable to install the utility due to company policy. I'm looking for some example VBA code that that can be used from within MS Access to send email. Requirements 1. Ability to set the from address 2. Ability to send mail without throwing a dialog
6
3048
by: Milsnips | last post by:
hi there, i created a little test application to send out multiple emails to addresses, but using threads. So anyway, what i've got is 1 form with a START button, and a multiline textbox for recording log output of sending results. I use the code: System.Threading.Thread t = new System.Threading.Thread(new
11
26608
by: cybervigilante | last post by:
I can't seem to change the include path on my local winmachine no matter what I do. It comes up as includ_path .;C:\php5\pear in phpinfo() but there is no such file. I installed the WAMP package and PEAR is in c:\wamp\php\pear I modified php.ini in the c:\wamp\php directory to reflect the actual path, but even stopping and restarting my server shows the c: \php5\pear path. I can't change it no matter what I do I also tried the...
0
8680
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9169
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9030
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8871
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6528
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5861
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2335
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.