Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#25 Problem sending MultiLine Email

open
nobody
None
5
2005-09-14
2005-09-14
Anonymous
No

Hi,

I want to send an email without "sendmail.bat" and
using the function -body but with multiline.

For exemple in PHP for a new line you have to use \n
and here, I dont know! I'm using a Batchfile, and don't
want to create 20 difrend *.txt

current using:
blat.exe "sendmail.txt" -to "xxx@domain.com" -
subject "EMAIL Subject" -body "This is only a test! \n
This is only a test! \n This is only a test! \n "

could someone help me please?

Discussion

  • Logged In: NO

    Use the vertical line, also known as pipe character (|).

    Chip

     
  • Chip
    Chip
    2005-10-01

    Logged In: YES
    user_id=800692

    blat.exe - -to "xxx@domain.com" -subject "EMAIL Subject"
    -body "This is only a test! ! This is only a test! ! This is
    only a test!"

    --
    Chip

     
  • You meant |, not !. Also, the spaces actually creates spaces. In other words, this is the correct way:

    blat.exe - -to "xxx@domain.com" -subject "EMAIL Subject"
    -body "This is line 1!|This is line 2!"