can we override outlook sender name in html email? - php

I have an html email newsletter sent monthly to customers. I've added a forward to friend link in the layout having
href="mailto:%20?subject=SUBJECT &body=TEXT">
Now when I click the button, it opens "outlook new Email" page.
When I send the email to myself(testing), I get the email with the sender name as my name which is the account name in my outlook email account.
So my question is can we override this sender name and choose one to appear bydefault in this case?

Here is everything you can do with an href mail to link.
http://www.echoecho.com/htmllinks11.htm

You cant do that with "mailto:" link.
You may need to create some small "contact me" website with contact form.

Related

How to specify custom sender?

I'm using the $email->setFrom('no-reply#example.com'); method and it's working fine for email delivered to the registered sender.
However, the email is delivered as no-reply#example.com.
How can I include the email of the customer that has filled the form? Eh: mario#gmail.com?
If I replace $email->setFrom('mario#gmail.com'); I will get 403.
This happen because I have to register the sender. But I just need to create a simple contact form.
Is there a way to use setFrom using a custom email?
Thanks in advance
Twilio SendGrid developer evangelist here.
When sending emails with SendGrid you do need to verify the email or domain you are sending from. So, you can't use any email address as the from email.
You're creating a contact form, which is why you want the email to appear to come from the person sending it. However, what you really want from that is to be able to reply straight to the person that sent the email.
What you can do is send the email from a domain or email address you have verified and then set the reply-to header to the user's email address. You will receive the email from your chosen email address but when you go to reply the to address will be filled in with the custom email address.
$email->setReplyTo("mario#gmail.com");

How to update my database when users click the "Unsubscribe" button of the mail client?

I am using PEAR::Mail to send thousands of emails and everything is working correctly. In the footer of my emails I have this link for those who want to unsubscribe:
When someone clicks that link, I go to my database to remove that email address from my list of subscribers. However, I recently noticed that my Gmail account included this unsubscribe button next to the company name, below the subject line:
When someone unsubscribes by clicking that link, I guess Gmail makes sure the person does not receive emails from my server anymore, but the problem is that I have no way of knowing that to remove that user from my database. I do not want to keep in my database emails of people who do not want to receive my emails (those who have explicitly unsubscribed). How can I know when someone clicked that link "Unsubscribe" that appears next to the company name? Thank you.
The header "List-unsubscribe links" can take a setting on how you want to inform you:
1) a mail to
When a recipient click the "list-unsubscribe", this automatically generates an email notifying the sender that an email address has unsubscribed. The unsubscribe header is set up with the email address that will receive the unsubscribe requests.
2) an unsubscribe URL
A link that will take the subscriber to your page to process the unsubscribe request.
At your page you can ask the user to confirm the unsubscribe or the reason for statistis.
example (using both type of setting)
From: weeklynews#example.com
Subject: News about tech
Date: April 15, 2020
To: myhappycleint#somecompany.com
List-Unsubscribe:<mailto:unscubscribe#example.com>, <https://example.com/unsubscribes.php>
Beware because not all mail clients support URL:
Gmail: Mailto, URL
Outlook: Mailto
Yahoo: Mailto
Thunderbird: Mailto, URL
iOS mail: Mailto

How can i forward email based on the email subject?

I need to forward emails coming from the Contact form 7 plugin to a group of users based on the email subject.
Lets say that i have an email with the subject "Services page form", now i need to forward this to an email services#example.com.
But if the email subject is "Contact page form", then i will forward it to contact#example.com. Are there any suggestions how this could be done?
If there are any other ways to do this are welcomed too.
Create different forms to use on each page. Each form you create has its own individual settings for email delivery etc.

How do I pull email address?

I'm putting together an eblast via sendblaster where I have a qualified list of email addresses; in the email copy is a link to a web page to look at a listing of products (on a web page) with a button to request bulk pricing. onclick I need the checked items and the email address of the person who filled in the form to be emailed back to a given email address including the user's email address (using php mail function for this). How do I pull the user's email address from sendblaster (or an IP address) and auto-fill it in the form?
I believe you need to use #email# tag in your mail:
http://www.sendblaster.com/support/newsletter-creation/email-merge-software-tutorial-newsletter-personalization

I want that email header part does not contain via link

when a user submits Contact Us form on our site and the info comes to us the email header contains from: abc#gmail.com via 218208-db2.christiandatingforfree.com. We dont want via 218208-db2.christiandatingforfree.com in the header part. Any suggestions...
That isn't something you can control. Gmail does it for the sake of security, otherwise you could send an email with the from field as support#gmail.com

Categories