I need to add multiple CC email recipients using YiiMailMessage. Recipients get them from a table.
Try these ways and does not work
$message->cc=("mail1#gmail.com, mail2#gmail.com");
$message->cc=("mail1#gmail.com; mail2#gmail.com");
You have to use an array of recipients:
$message->cc=(array("mail1#gmail.com","mail2#gmail.com"));
Related
We collect the registrations of events via a form in a dynamic list. How can we remove people who have unsubscribed via email or telephone from this list, since you cannot delete form submissions? Help?
In an active list, you can exclude unsubscribed contacts by adding a filter for "Unsubscribed from all email is not equal to True":
Screenshot:
I am using UiPath's Get Outlook Mail Messages component to obtain emails.
My only request has been to ignore any emails that are Replies, so contain "RE:"
In my email filters I had tried the below:
#SQL=urn:schemas:httpmail:subject NOT LIKE 'RE%'
Unfortunately, I receive the error "Get Outlook Mail Messages: Cannot parse condition. Error at "#SQL=((urn:schemas:httpmail:subject NOT ...".
When I try the filter: `
#SQL=urn:schemas:httpmail:subject LIKE 'RE%'
I am able to obtain all emails that contain 'RE:' but as specified, I want to omit these.
Would anyone be able to advise how to Omit these emails? I need to obtain every other email in the Inbox so makes more sense to just ignore the Replies.
Thanks,
Your code is very close to being correct. The NOT keyword does work, just the placement is incorrect, unlike normal SQL where the NOT would be before the LIKE, in this case it would come before the field name.
So rather than:
#SQL=urn:schemas:httpmail:subject NOT LIKE 'RE%'
It would be:
#SQL=NOT urn:schemas:httpmail:subject LIKE 'RE%'
all, and thanks for your support.
I have a list of e-mails (ex: johndoe#company1.com, maryjane#company2.com) and need their DisplayTo names.
By "DisplayTo" I mean the name that appears after the first e-mail is sent ("ABC" in red).
So it should be something like "John Doe" or "Jane, Mary", which is how future e-mails to them appear (only the first one appears as name#company.com).
The Address Catalog only has internal company e-mails. I could not find a way to get this information in Outlook API documentation, is there a way to do this?
Thanks a million!
Pass the SMTP address to Namespace.CreateRecipient (returns Recipient object). Call Recipient.Resolve, then use Recipient.AddressEntry.GetExchangeUser.FirstName/LastName/etc (error / null checking omitted).
I m using a html form which allows user to enter the details and choose a file to be sent as an attachment with an email via smtp connector in mule. I m using encoding type as- enctype="multipart/form-data" in my html form with method as "post". So all my html fields are coming as inbound attachments and they are being sent as separate 8 attachments in the mail.
Out of the 8 inbound attachments i want to drop 7 attachments and send only one attachment that is the file (highlighted with green) via email. How can i achieve this? Which transformer i should use?
[mule message structure image][1]
![1]: http://i.stack.imgur.com/F9fYu.png
I had similar problem and I found solution. First, you need to copy interesting attachment from inbound to outbound (use copy-attachment tag) and after that you should use transformer email:object-to-mime-transformer with attribute useInboundAttachments set to false. Works for me.
According to me you can drag and drop Attachment transformer after you receive all the attachments and then select Copy Attachment and give value as #[message.inboundAttachments.'file'].
Same to remove you can drag and drop Attachment Transformer and then select RemoveAttchment and then using MEL give attachment name.
#[message.inboundAttachments.'subject']
Hope this helps you !
currently i am working on one of mule use case where i need create a mule flow which reads mail from gmail account which has an attachment.
Currently i am able to retrieve the attachment data from mail, but i couldn't able to get the mail attachment name.
Can some one help me out to get the attachment name from mail.
Attachments are instances of javax.activation.DataHandler - http://docs.oracle.com/javaee/1.4/api/javax/activation/DataHandler.html
SO you should be able to call .getName() or .name on each attachment using MEL. i.e #[message.inboundAttachments.someattachment.name]
The object you're apply MEL to is an instance of InboundAttachmentMapContext, which is a Map.
So what about using keySet() to get the attachment names or entrySet() to get entries of (name, attachment)?
use #[key], this will give filename inside foreach statement.
Use #[counter] to get the file array no.