Can we change email content for bcc only Using SendGrid Personalization? - asp.net

I have an email for customer, Its bcc we have the Subscriber's company Email.Email Contain a link to web page.Now the problem is the link is passing IsCustomer=true which becomes the reason for a function to be executed.I want to replace IsCustomer=true with IsCustomer=false or disable the link for BCC only.
I do not have an option to send two separate emails.
Technically, the requirement seems weird to me as why we should be able to change the email content of same email for recipient and BCC.
I have studied the personalizations topic here and I am doubtful about this.
Is there any way to achieve that?

Related

how do I hide the domain name from an email?

I have created a mail server using postfix, dovecot and squirrelmail in centos7.
For example if the email is abcd#something.com. How to hide #Something.com and show only abcd in the receiver's inbox?
Although not really a programming question, the solution is that the "From" header in the email has to have a display name part such as:
From: "My Name" <abcd#example.com>
Then the "My Name" part will show in most email clients upon arrival. In SquirrelMail (and most other email clients), the way you make sure this happens it to go to the personal information options and make sure you have something filled in the full name field.

strange text when extract the body of email from Gmail using IMAP

iam using QT and Qsslsocket to get some emails body from Gmail using IMAP, I started using the IMAP command to log in, check how many emails I have, and fetch the data from the email I selected I use this commands sure after connected to IMAP using hostname and port.
tag login username password
after login and check the number of messages using tag select inbox I use this command to extract the body of the email.
tag fetch message_number (body[1])
the problem is i got very strange words like this
* 5 FETCH (BODY[1] {1856}
SGkgRmVsaXggYW5kIEZpbmdlcnMgRHVlbGluZyBQaWFub3MsCgpWaWN0b3JpYSBBLiBoYXMg
dXBkYXRlZCB0aGVpciBldmVudC4KClRoZSBwZXJmb3JtYW5jZSBsZW5ndGggaGFzIGJlZW4g
Y2hhbmdlZCB0byAzIGhvdXJzLgoKVGhlIHBlcmZvcm1hbmNlIHN0YXJ0IHRpbWUgaGFzIGJl
ZW4gY2hhbmdlZCB0byA1OjAwcG0uCgoKCgpVc2UgdGhlIGxpbmsgYmVsb3cgdG8gdmlldyB0
aGlzIGxlYWQ6Cmh0dHA6Ly90cmFja2luZy5naWdzYWxhZC5jb20vdHJhY2tpbmcvY2xpY2s/
ZD1RS1FFeEQxZGtIQTZrYWE3YzFXSzcxZ2VDVXBNX0F5UFR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gKG5vdCByZWNvbW1lbmRlZCk6Cmh0dHA6Ly90cmFja2luZy5naWdzYWxhZC5jb20v
dHJhY2tpbmcvdW5zdWJzY3JpYmU/bXNnaWQ9UzQzLVFsVDVBbHhiaUl0SmhxU0NuZzIKCsKp
IFRoZSBHaWcgQnVyZWF1LCBMTEMuIEFsbCByaWdodHMgcmVzZXJ2ZWQuIFBlYWNlLCBsb3Zl
ICYgZ2lnc8KuIGlzIGEgcmVnaXN0ZXJlZCB0cmFkZW1hcmsgb2YgVGhlIEdpZyBCdXJlYXUs
IExMQy4KMjczMyBFLiBCYXR0bGVmaWVsZCBSZCAjMTA1IFNwcmluZ2ZpZWxkLCBNTyA2NTgw
NA==
)
but the email contains normal message have normal words the strange is when i test with another gmail, i take this email from first email and send it forward message to my second email, it give me the normal text in it! so please any help i can't understand what is the problem, also what i tried is using openssl which give me same result as QT strange words, and javaMail library and extract text from first email it worked? so is the problem from the imap command i used or what?
Thanks in advance.
this a screenshot of the email message
Update
when i start some search i checked that this message is encoded to base64 and when i used online decoder it convert to the normal text but the question now is what command should i use so that i can fetch this message body text in normal text automaticly if there is such away.

Dynamic Email Subject and Body in Docusign Powerforms in c#

Team,Docusign ,
I am using Email and Direct Mode for Powerforms in C#.NET and sending documents for signing using powerforms links and appending all custom tags as query string
for e.g.
//This is just an example, emails are sending perfectly.
demo.docusign?powerforms.aspx?id=axx-4545-a56s&Prospect_UserName={0}&Prospect_Email={1}&EnvelopeField_CompanyId={2}&EnvelopeField_StaffId={3}...
but I have a requirement where, I need to change Email Subject and Email body as per different type of companies.
For e.g. if a CompanyType: Member, then EmailSubject: "Memebers Need to Sign NDA", and Mail Body : "Dear Member, Please sign... large text"
If CompanyType :Prospect , then different wordings for Subject and Mail Body.
Right now , I have to hard code single mail wordings and bound to use same email subject and body for both types of company and I can't change it dynamically.
I don't want to create separate powerform templates again for mebertype and prospecttype and under each again one for EmailMode and another for DirectMode.
Do you have any solution ?
You could switch to using the API directly.
Powerforms don't provide the capability you're requesting.

How to obtain the read receipt and store inside a string?

In my project i have created a site from where my users or clients can send some documents to other users.
I also want to see if the recepient has read the mail/has the mail been sent.
Now i want to store the value of the result ie either "Sent" in case the mail has been successfully delivered. And "Viewed" when the mail has been opnened or read by the recepient.
I have done this code
MailMessage mailme = new MailMessage();
mailme.DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess;
As i said above i want to store the value "Sent" or "Viewed" inside a string. Further ill store the values inside my tables.
How do i get the desired result. Basically i need to get the delivery report and report if the mail has been viewed.
Also i want to get the date as well as time when the mail was viewed by the recepient.
Thank you.
You might be looking for this:
mailme.Headers.Add("Disposition-Notification-To", "yourmail#mail.com");
where "yourmail#mail.com" should get a mail if the mail was read.

Drupal: Edit !name variable in my Drupal to first name?

I’ve a bit of annoying problem with a Drupal site. I’ve a “recommend to a friend” field where one can send an article link to an E-mail address. The problem is, that it uses the variable !name in the mail and when I’m receive a mail, it uses the name before the “#” in my mail.
I use my mail as username, so if I’ve registered a user with the username: johndoe#google.com it will present the !name variable as johndoe.
What I want is to display the first name (and maybe the last name) so it says: John Doe recommends this article …
But how can I do that? I’ve search like crazy for the setting.
Thanks
Sincere
- Mestika
To replace user names in quotes by reals names it's necessary to replace Phorum´s standard function for quoting. Since it only makes sense to have one module modifying the quoted text, you can disable this one part of this module. Use System Sanity Checks to control if there is only one module using the quote hook. The default value is "disabled".
TUV Rheinland of North America
You could also try the Custom Tokens module. I use it to get text from my user's Content Profile.

Resources