Community Discussions and Support
Pegasus Mail command line options....

> Please... can someone supply me with an example command line (or batch file) using the -J option for submitting mail to PM..., alternatively,
> submitting from the command line so that the message text, as well as an attached (.pdf) file can be sent.. I also do not want PM to encode
> this attached file...how to suppress this??

I never use this since sending a message via the Pegasus Mail command line is like using a sledgehammer to kill a fly.  Either have you application create a *.PMX file (Message in final form in glue headers format ready for sending) or use something like Blat!.

BLAT  http://sourceforge.net/projects/blat

DESCRIPTION:

Blat is a Public Domain  Windows NT console utility that sends the contents of a file in an e- mail message using the SMTP protocol. Blat is useful for creating scripts where mail has to be sent automatically (CGI, backups, etc.) To use Blat you must have access to a SMTP server via TCP-IP. Blat uses the a DLL ("gensock" or "gwinsock") from WinVN, the public domain usenet newsreader for windows. Blat can store a default SMTP server address and a default "From:" field in the registry. The server's address can be overriden using the -server flag, and the "From:" address using the -f flag. Input from the console (stdin) can be used instead of a disk file (if the special filename '-' is specified). Blat can also "carbon copy" and "blind carbon copy" the message. Impersonation can be done with the -i flag which puts the value specified in the "From:" line, however when this is done the real senders address is stamped in the "Reply-To:" and "Sender:" lines. This feature can be useful when using the program to send messages from NT users that are not registered on the SMTP host.   

Optionally, blat can also attach multiple binary files to your message.



> Please... can someone supply me with an example command line (or batch file) using the -J option for submitting mail to PM..., alternatively, > submitting from the command line so that the message text, as well as an attached (.pdf) file can be sent.. I also do not want PM to encode > this attached file...how to suppress this?? I never use this since sending a message via the Pegasus Mail command line is like using a sledgehammer to kill a fly.  Either have you application create a *.PMX file (Message in final form in glue headers format ready for sending) or use something like Blat!. BLAT  http://sourceforge.net/projects/blat DESCRIPTION: Blat is a Public Domain  Windows NT console utility that sends the contents of a file in an e- mail message using the SMTP protocol. Blat is useful for creating scripts where mail has to be sent automatically (CGI, backups, etc.) To use Blat you must have access to a SMTP server via TCP-IP. Blat uses the a DLL ("gensock" or "gwinsock") from WinVN, the public domain usenet newsreader for windows. Blat can store a default SMTP server address and a default "From:" field in the registry. The server's address can be overriden using the -server flag, and the "From:" address using the -f flag. Input from the console (stdin) can be used instead of a disk file (if the special filename '-' is specified). Blat can also "carbon copy" and "blind carbon copy" the message. Impersonation can be done with the -i flag which puts the value specified in the "From:" line, however when this is done the real senders address is stamped in the "Reply-To:" and "Sender:" lines. This feature can be useful when using the program to send messages from NT users that are not registered on the SMTP host.    Optionally, blat can also attach multiple binary files to your message.

Please... can someone supply me with an example command line (or batch file) using the -J option for submitting mail to PM..., alternatively, submitting from the command line so that the message text, as well as an attached (.pdf) file can be sent.. I also do not want PM to encode this attached file...how to suppress this??

Please... can someone supply me with an example command line (or batch file) using the -J option for submitting mail to PM..., alternatively, submitting from the command line so that the message text, as well as an attached (.pdf) file can be sent.. I also do not want PM to encode this attached file...how to suppress this??

[quote user="Bruce L"]I also do not want PM to encode this attached file...how to suppress this??[/quote]

You can not avoid encoding when sending .pdf because that is binary. Most common form of encoding is base64. You can't send binary via SMTP unless encoded or send long lines of ANSI text without encode of it also. Also sending using compressed archive is the best also. 

<p>[quote user="Bruce L"]I also do not want PM to encode this attached file...how to suppress this??[/quote]</p><p>You can not avoid encoding when sending .pdf because that is binary. Most common form of encoding is base64. You can't send binary via SMTP unless encoded or send long lines of ANSI text without encode of it also. Also sending using compressed archive is the best also. </p>
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft