php – How to send emails from any address with postfix?

I’m very familiar with PHP, and I used to use the mail function. I really want to be able to use it on my Raspberry Pi 4 apache2 server. I have php installed, and the mail function always returns true. But it never makes it. It’s not any error with the code or my spam folder because I’m using the same script I used to and there haven’t been any updates to my provider. Anyway, I know I need to install postfix, but I don’t know how. PLEASE READ ON BEFORE GIVING SOME TUTORIAL LINK. Anyway, I need to set it up so that I can send email over the internet AND from any address. Thanks in advance!

What are best practices for collecting consent for marketing emails during checkout?

I’m working on an ecommerce website that uses Mailchimp for both transactional and marketing email. Users can purchase items without creating an account on the website.

Per Mailchimp’s terms of service, we cannot send marketing email to customers without their explicit permission. We would like to give users an opportunity to opt in to marketing email during the checkout flow.

Any suggestions on the best way to encourage users to opt in to marketing email without discouraging them from completing the checkout process?

interaction design – Is there any reason to send “no-reply” emails?

Actually, there is one, but it’s not what you think.

Generally speaking, a no-reply e-mail is an anti-pattern.

In my career, I’ve seen one example where two companies didn’t use no-reply e-mails, and things went south. It’s not a good reason to use no-reply e-mails, but certainly something you should consider when using support tools instead.

Consider this scenario: an e-commerce company decides to substitute the no-reply e-mail as the confirmation order sender with an automated contact@example.com address, which puts your e-mail into a support system, where it creates a ticket for it, gives it an assignee, etc.

A couple weeks later, that company integrates through an API with a partner, who places a lot of orders in the company’s system. Unluckily, the partner also has the same policy of putting data in a support system.

So, what happens is: the partner starts placing orders in extreme quantities, receives a ton of order confirmation e-mails. Since the partner provided a standard contact@example.com address again, all of those e-mails go into the ticketing system. So, the ticketing system starts sending out ticket creation confirmations to the original company. Obviously, to the contact@ e-mail, so they end up as separate tickets in the ticketing system of the first company. Which, by the way, sends the confirmations back again which causes the partner’s system to create even more tickets, and send out even more confirmations.

Complete e-mail paralysis on both sides for a couple hours ;-]

sharepoint online – Using MailMessage to send emails will raise the following errors “Mailbox unavailable” + “Error in processing. The server response”

I have the following code inside my asp.net console application to send an email using office 365 smtp server:-

static private void sendemail(ClientContext context, string subject, string body, string to)
        {
            using (MailMessage mail = new MailMessage())
            {
                mail.From = new MailAddress("sharepoint@outorganization.com");
                mail.Subject = subject;
                mail.IsBodyHtml = true;
                SmtpClient smtp = new SmtpClient();
                smtp.Host = "ourorganization-com.mail.protection.outlook.com";
                smtp.EnableSsl = true;
                mail.Body = body;
                mail.To.Add("***@****.net");   
                smtp.Port = 25;
                smtp.Send(mail);
            }

        } 

static void Main(string() args)
        {
            string s = "******";
            SecureString passWord = new SecureString();
            foreach (var cc in s)
                passWord.AppendChar(cc);
            using (ClientContext context = new ClientContext("https://****.sharepoint.com/"))

            {

                context.Credentials = new SharePointOnlineCredentials("***@***.onmicrosoft.com", passWord);
                sendemail(context,"test 123","test123 body","***@***.net");

            }
        }

but the smtp.Send(mail); is raising the following errors, i got different errors depending on the server i am running the above code in:-

Error-1

System.Net.Mail.SmtpException: 'Error in processing. The server response was: 4.4.62 Mail sent to the wrong Office 365 region. ATTR35. For more information please go to https://go.microsoft.com/fwlink/?linkid=865268 (HE1EUR01FT009.eop-EUR01.prod.protection.outlook.com)'

Error-2

Mailbox unavailable. The server response was: 5.7.1 Service unavailable, Client host (165.225.80.126) blocked using Spamhaus. To request removal from this list see https://www.spamhaus.org/query/ip/165.225.80.126 AS(1450) (VE1EUR01FT009.eop-EUR01.prod.protection.outlook.com)

any advice on this please?
Thanks

8 – How do I verify emails on a contact form?

I want to implement a functionality where anonymous users can contact node authors. I have created a contact form with email field for each node. I would like to send an email verification link to the email address for email ownership confirmation. The form submit should be complete only when that happens.

What would be the best approach to handle this? There is a module in drupal 7 which could work but I didn’t come across anything for D8. Will appreciate any help with this.

iphone – Why am I receiving messages from a group text as emails?

Two possibilities don’t include operator error.

  • Your cellular carrier has SMS to email enabled for your service.
  • The sender of the SMS has SMS to email enabled.

I would start with your carrier. This is easy to happen since AppleID and iMessages can be your email or AppleID or cellular number and the receiving party could have your contact commingled.

Once you’re sure it’s not a carrier setting, you have to see the person doing the sending to be sure they don’t send to your email, but since you’re seeing the ATT mms email, I suspect the first two cases.

Why can’t I send emails with my domain name emails without deliverability issues?

I have separate my website and email hosting. I use yandex smail service for email hosting. Everytime I send and email to an address, I get no dkim authentication issue even though, I have configured spf, dkim and dmarc in my dns zone.

Gmail has stopped letting me fetch e-mails via IMAP or send via SMTP

With zero changes, I’ve been fetching e-mails from my Gmail account via IMAP for a long time. The last couple of days, I get errors like this:

(ALERT) Please log in via your web browser
(ALERT) Please log in via your web browser
(ALERT) Please log in via your web browser
Too many login failures

I have logged in numerous times with “my web browser”. It doesn’t change anything. The exact same errors keep showing. I’ve gone through all the settings and nonsense. There’s nothing for me to enable/approve/fix in the account settings.

I’ve waited for many hours without trying to log in. Nothing helps.

It suddenly doesn’t let me do anything but use a web browser to access my Gmail account. Which is worthless. I need IMAP/SMTP access, as I’ve had up until now.

When, in the past, this kind of thing happened (which seems to happen randomly), logging in with a browser would display a CAPTCHA and then access would be restored. Not this time. I’ve tried changing passwords multiple times, entered many CAPTCHAs to log in, etc. Nothing works.

This seems like they have cut off access to their e-mail “service” completely, without announcing it or telling you in clear terms. The practical end result is that I’m completely crippled and cannot send or receive any e-mails.

There’s simply nothing left that I can do at this point. I guess this is it. I’ve been forced to stop using e-mail too. Now I have exactly zero communication channels left on this so-called “global network of computers”. The year is 2020 and I don’t even get to receive/send e-mails.

Reminder: Receive emails when we publish new cheap vps offers and articles!

If you want to be first to know about all of our latest and greatest offers on cheap VPS, web hosting, dedicated servers and VPN services be sure to subscribe to our mailing list! By subscribing you will also be emailed when we publish new Tutorials, Editorials and Interviews. Many of our VPS and other hosting related offers are limited quantity deals that expire once too many people signup, so the earlier you know about the latest offers the more likely you are to be able to grab those savings!

By signing up to this subscription form we promise to:

  1. Never email you for reasons other than new articles, offers and content.
  2. Unsubscribe at anytime easy using the link at the button of each email

Leave feedback and suggestions in the comments below.

Jon Biloh

I’m Jon Biloh and I own LowEndBox and LowEndTalk. I’ve spent my nearly 20 year career in IT building companies and now I’m excited to focus on building and enhancing the community at LowEndBox and LowEndTalk.

Configure ClamAV in WHM/cPanel for scan malware in emails

I have server with WHM/cPanel. I have some questions for configure correctly ClamAV and scan the email malware:

1- I installed ClamAV since WHM plugins, I need do anything for Exim scans malware in emails with clamd?. Or this is automatic?.

2- ClamAV is update automatically when update WHM/cPanel?, or I need do anything for update ClamAV?.

Thank you very much. Have a nice day.