Mailx or Informatica task - send message to recipient with more than 1 name in address - informatica

I have a problem with email sending in informatica when i need to send a message to a person which have more than 1 word in his email. like: Pizza and Pasta#mail.ru
This email address belongs to a group of people (about 10).
When i'm writing something like this (using session in informatica and choose in components post-session succeed command) :
echo "Test" | mailx Pchernyakov#mail.ru, Pizza and Pasta#mail.ru -s "Loading of the report done"
my letter splits the Pizza and Pasta#mail.ru into 3 mails like
Pizza#localhost.myjob.net, and#localhost.myjob.net, Pasta#localhost.myjob.net
My email is correct (Pchernyakov#mail.ru) that's why i recieve a message.
This problem exists also in Email task in informatica when i fill in Email User Name like
Pchernyakov#mail.ru; Pizza and Pasta#mail.ru
Commas, quotation marks - doesn't work. I need an idea. Maybe, somebody has had this problem and know the solution.
Thanks a lot!

Related

How to validate email before send mail and finding whether the mail send - django

I use - is_valid = validate_email(e) for validating email. It can detect if '#' is not present or some more but not providing whether the email entered is active now. AND I used sendmail for sending email. I used try except block. Mail is sending but sometimes try code running and someother times except block is running. How to avoid this abnormal behaviour.
if i correctly understand your question..
There is an option called emailfield in djangoforms.it will show validation error if # is not present.
field_name = forms.EmailField(**options)

OTRS fetch info from url

I've OTRS 5 working fine . I need to retrieve information from web
for example I received emails from support team they put in the subject (customer ID) I need to put in the body message of the Ticket the customer information based on Customer ID which will fetch it from another local system through Url e.x "skldfj.com/dslkde.php?id=23487893"
for example I received ticket in subject: customer 23487893 have issue
in body need to be something like
hello team this customer (ID 23487893) have issue
customer info (fetch it from skldfj.com/dslkde.php?id=23487893)
name
telephone and more

How I can parse email to get original recipient of an email?

I had email source with me and want parse original recipient of email.
Lets say "user1#test.com" is receiving a email, but in "To" list user1#test.com, user2#test.com & user3#test.com are mentioned. I want to get only user1 from email source.
In initial analysis, email from mdeamon server contains "X-MDaemon-Deliver-To:" tag. Similarly email from Devcot mail server contains "Delivered-To:". But not getting generic parsing logic to get original email recipient.
How I can parse email to get original recipient of an email?
The best way to get this information is probably to parse the Received headers to see who the message was delivered for. In other words, look for a Received header that has a for token followed by x#x.com (where x#x.com will be the recipient).

Find email address in a bounced back email

I am trying to get the email addresses for which my mails bounced and the only way I could find was to read the bounced Email using javamail and try finding the Email addresses Contained in the Message. I am able to read the Emails and now My challenge is finding the Emails therein.
Here is My method:
public String findEmailInString(String message) {
String email = "";
Pattern pat = Pattern.compile("^[_a-z0-9-]+(\\.[_a-z0-9-]+)*#[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,4})$");
Matcher match = pat.matcher(message);
while (match.matches()) {
email = match.group();
}
return email;
}
EDIT My messages are in this Format:
"
This is an informative message sent by mail.simbatech.biz.
The server was not able to deliver your email message
Subject: GAtungo
Date: Fri, 14 Nov 2014 15:52:58 +0300
to the following addresses:
<gatungowanungai#simbatech.biz> (mail.simbatech.biz: Mailbox does not exist)"
This Method is returning null despite the fact that there are email addresses in the message body. Is there a better way to achieve this?
I know that this doesn't answer the question directly but the normal practice here isn't to attempt to parse the bounce message at all.
Instead when you send your emails out you set a different Return-Path header for each email that you send. You can then uniquely identify which user this message is from.
This technique is called VERP.

Redirect users to their specified email accounts with receiver and message fields pre-filled

I have an email address "myaddress#gmail.com". I have created a django form that has a text field and a button. I want to redirect anyone who types a message in the text box to their respective emails so that they can send the message they typed to "my address". This means that as they log in to their email accounts, their message boxes should already be filled with the message they typed and the receiver field should already have "myaddress#gmail.com". The problem is how to redirect the users to their email accounts and prefill the specified fields.
Can anyone help me please?
If the user has set a default email program, most of them will be triggered on mailto:. I know gmail works with mailto: as well, and its possible that other web email services might. All desktop email clients - again only if it is set as the default email program will work on mailto:
The format is:
mailto:[emailaddress]?header=value&header1=value1....&headerN=valueN
Here is an example that sets the subject of the email automatically:
Email me