blat

PowerShell: remove or replace quote marks from variable

倾然丶 夕夏残阳落幕 提交于 2020-06-25 07:36:05
问题 I'm using Get-EventLog to set a variable, and then setting another variable with the event ID description. I then use blat.exe to email this information to a group. The description contains quotation marks. The quotation marks are causing blat to exit with error. Is there a way to remove the quotes from the event.Message and replace them with a space or something? 回答1: If the variable is a String object then you can do the following: $Variable.Replace("`"","") 回答2: I actually just got it. The

How can I send a .pdf file as blat attachment?

心不动则不痛 提交于 2019-12-21 19:54:29
问题 I try to send a mail with an attachment with blat (with the Shell command of Access VBA). All works fine while I try to send a .txt file blat ... -attach c:\mydir\myfile.txt but if I try to send a .pdf file, with the same command blat ... -attach c:\mydir\myfile.pdf I don't receive the mail. Thanks in advance for any suggestions. 回答1: The file type by itself shouldn't matter with BLAT, but your email provider might be balking at the size of PDF you're trying to send, or may restrict sending

Error in sending an email with BLAT

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 01:07:22
问题 I have this code: blat -to test@test.com -server -f test@test.com -subject "subject" -body "body" -attach DATA.log It uses blat to send a email but it gives the error: Not enough arguments supplied Does any one know what I'm doing wrong? Thanks. 回答1: Try like this : The server is setted here for GMX. You have to set it for your provider. blat.exe -server SMTP.GMX.COM -f your_E-mail_address -to Destination_E-mail_adress -s "cc text" -body "body text" -u "Login of your E-mail" -pw "Password of

How can I send a .pdf file as blat attachment?

[亡魂溺海] 提交于 2019-12-04 13:22:46
I try to send a mail with an attachment with blat (with the Shell command of Access VBA). All works fine while I try to send a .txt file blat ... -attach c:\mydir\myfile.txt but if I try to send a .pdf file, with the same command blat ... -attach c:\mydir\myfile.pdf I don't receive the mail. Thanks in advance for any suggestions. The file type by itself shouldn't matter with BLAT, but your email provider might be balking at the size of PDF you're trying to send, or may restrict sending PDF files altogether. I'd say check with the mail provider and see if they have any such restrictions.