Email Sender - v2

Protocol

Email

 

 

Description

Send email messages via SMTP server Host on Port (default: 25), and do Not use authenticated Login.

Compose the email with the following information:
To Address: Expression
From Address: Expression
Cc Address: Expression
Bcc Address: Expression
Subject: Expression
Message Body: Expression

 

 

Comments

If Host parameter is missing, blank, or invalid, sending is disabled.

If From Address is missing, sending is disabled.

If all of To, Cc and Bcc addresses are missing or invalid, sending is disabled.

All address fields, subject, and body text can be created dynamically from within the event, or can be configured statically.

Multiple comma delimited email addresses can be specified in the address fields.

If you do not specify your smtp server setting, destination will try to send mail using

embedded outbound smtp server Aspirin.

Limitations when using Aspirin:

In most cases mail sent from Aspirin will not be accepted by a server implementing SPF mail authorization. This would be the case with ANY smtp server deployed on a user's desktop or any other machine not specified in the DNS record from corresponding to the "from" addresses host name.

Aspirin will not pass SPF authorization because SPF looks up the DNS record for an e-mail's "from" address's host. If the ip address of the computer you're sending from doesn't match any of the appropriate DNS records in that host it will think you're spoofing the from address which is frequently a sign of spam. Unfortunately this rejects a number of valid e-mails too.

 

Example

<destination objectId="email-v2-Sender" type="EmailSender-v2">
	<parameter type="Host">eventvgnosis.com</parameter>
	<parameter type="Port">25</parameter>
	<parameter type="Not"/>
	<parameter type="Login">
		<user>danijel</user>
		<password>439438437</password>
	</parameter>
	<parameter autoSetDescription="true" comments="" description="test1@eventgnosis.com" type="Expression">
		<type>String</type>
		<formatString>test1@eventgnosis.com</formatString>
	</parameter>
	<parameter autoSetDescription="true" comments="" description="test@eventgnosis.com" type="Expression">
		<type>String</type>
		<formatString>test@eventgnosis.com</formatString>
	</parameter>
	<parameter autoSetDescription="true" comments="" description="test2@eventgnosis.com, ev:support" type="Expression">
		<type>String</type>
		<formatString>test2@eventgnosis.com, %1%</formatString>
		<formatParmSpec>
			<type>EventType</type>
			<name>ev:support</name>
		</formatParmSpec>
	</parameter>
	<parameter autoSetDescription="true" comments="" description=" ev:extracted.mail" type="Expression">
		<type>String</type>
		<formatString> %1%</formatString>
		<formatParmSpec>
			<type>EventType</type>
			<name>ev:extracted.mail</name>
		</formatParmSpec>
	</parameter>
	<parameter autoSetDescription="true" comments="" description="Sample email message from  ev:protocol" type="Expression">
		<type>String</type>
		<formatString>Sample email message from  %1%</formatString>
		<formatParmSpec>
			<type>EventType</type>
			<name>ev:protocol</name>
		</formatParmSpec>
	</parameter>
	<parameter autoSetDescription="true" comments="" description="Sample message" type="Expression">
		<type>String</type>
		<formatString>Sample message " %1% " from host %2% via %3%</formatString>
		<formatParmSpec>
			<type>EventType</type>
			<name>ev:msg</name>
		</formatParmSpec>
		<formatParmSpec>
			<type>EventType</type>
			<name>ev:host</name>
		</formatParmSpec>
		<formatParmSpec>
			<type>EventType</type>
			<name>ev:app</name>
		</formatParmSpec>
	</parameter>
</destination>
 

Event Mapping

Incoming ECS event XML:

<event xmlns:ev="http://www.eventgnosis.com/">
	<ev:host>elmo</ev:host>
	<ev:app>mailApp</ev:app>
	<ev:log>mail</ev:log>
	<ev:protocol>smtp</ev:protocol>
	<ev:msg>Some message/ev:msg>
	<ev:extracted.mail>test3@eventgnosis.com</ev:extracted.mail>
	<ev:support>test4@eventgnosis.com</ev:support>
</event> 
 

Resulting sent email:


{
  From Address test@eventgnosis.com
  To Address

test1@eventgnosis.com

  Cc Address

test2@eventgnosis.com, test4@eventgnosis.com

  Bcc

test3@eventgnosis.com

  Subject

Sample email message from smtp

  SMTP Server eventgnosis.com
  Message

Sample message " Some message " from host elmo via mailApp

}