1.

Solve : Can someone help me with this .bat file?

Answer»

I'm trying to copy and modify this: authenticate with external SMTP mail server and send SIMPLE email using .bat but I'm doing a bad job here.

C:\>[emailprotected] -FROM [emailprotected] -TO [emailprotected] -TEXT "You have Email" -SUBJECT "You have Email" -SMTP smtp.somewhere.com -AUTH AUTO -USER pete -PASS 123456

But I don't know if I'm writing it correctly or I'm using it wrongly.

Why is there 'C:\>' ?

I think the REST is correct but I'm just guessing.

ThanksQuote

Why is there 'C:\>' ?

That would be your prompt. You are currently logged on to the root directory on the C: drive.

Quote
C:\>[emailprotected] -FROM [emailprotected] -TO [emailprotected] -TEXT "You have Email" -SUBJECT "You have Email" -SMTP smtp.somewhere.com -AUTH AUTO -USER pete -PASS 123456

This string appears to be parameters for some program. Unless you have a program named [emailprotected], this code will not EXECUTE. How did this string arrive on your doorstep?

Quote
I'm trying to copy and modify this: authenticate with external SMTP mail server and send simple email using .bat but I'm doing a bad job here.

Blat is one method, ALTHOUGH on a XP machine I would suggest a VBScript using either the Outlook application or Collaboration Data OBJECTS (CDO). One advantage of a VBScript is you have more control over the final product.



Discussion

No Comment Found