Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all 29772 articles
Browse latest View live

Change original message [closed]

$
0
0

How I can change all in original message from d97821ew__lyceummb8b__ou@raiden.beget.ru to lyceummb8b@lyceummb8b.online (mail() php)

Delivered-To: egorhan2005@gmail.com Received: by 2002:a17:906:27db:0:0:0:0 with SMTP id k27csp9555403ejc; Sat, 30 Nov 2019 01:09:18 -0800 (PST) X-Google-Smtp-Source: APXvYqyr2BVkjekQ+ns2Px9RKopYHlwAFJvAiAGRWZy3u1mtXdedEYqwM9MP6r5tOVeMZQwjYMvG X-Received: by 2002:ac2:5b0f:: with SMTP id v15mr26024962lfn.99.1575104958190; Sat, 30 Nov 2019 01:09:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575104958; cv=none; d=google.com; s=arc-20160816; b=UJM9iMcTbLA1ysWAHlce6oUN+fG3S2uye8efKDoSsUG/7O6YJ5C8MiS6VExdgLp98+ c/RXH9VGYpXN1QTeJahBYRYTTXYTF4ImCZ4vQC3EF5+o2gqDZT2AfQ0pgo6xgX9dP+b0 qypiaG4NI7SvV1FJxRLkPwTZiSHirAuzroC8asixG3s+m8juYxTlfsd7gd/Zw29hpLG9 XLJZKl2YiQS0VSOq8BbT1I0yD5XAceqKCZRwGVM3RNs1sgYh9KCXee9tiGNhKSMdGeHi u5c8GXq2v7dyVRKRAWPIeSKiYKR8sDIY8jya7iCkG3rxcXu0KYKqaCnXIOX/V8nahTAV E5AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:importance:date:from:mime-version:subject:to :dkim-signature; bh=WZXWKavULKb2U/jrynVGCGloef0WmiXUVrvpErHC/+k=; b=mOuj+P+wi1pO3OIuq6DCraCV3hXNsnPNHeUckiifqUZqMED91Ylf6YMZwilHkxkdqe QgU97fgPMvYrdAzhg+OulxAAHkfoUu4xcTrh5gKoM/raF+1Ai/zUQ9iOARxB7s3GUz2g hckeZY0TuhhBzmK9C5yNB+OELe9tN/DwTAEjMCZpfvxT42ZUS2ymCSX7OAP/dVhCzZ5+ x7y0SBQ9zudkIIbbxBN2NCfFYjX84p35535ah8KxGpaRCi1uSQLvZ2T2Nt0yu65kBuSm MUCRdWLWE/332gelJ1TdFwevW6fEXvQ6TYJrrbx8U0zE7IyQdfg42QWX+f0RTZjBjX0d n1fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lyceummb8b.online header.s=beget-php header.b=PxGvuZj2; spf=pass (google.com: domain of d97821ew__lyceummb8b__ou@raiden.beget.ru designates 5.181.111.32 as permitted sender) smtp.mailfrom=d97821ew__lyceummb8b__ou@raiden.beget.ru; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lyceummb8b.online Return-Path: Received: from d97821ew.customers.mta.beget.ru (d97821ew.customers.mta.beget.ru. [5.181.111.32]) by mx.google.com with ESMTPS id p12si11339842ljj.100.2019.11.30.01.09.17 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 30 Nov 2019 01:09:18 -0800 (PST) Received-SPF: pass (google.com: domain of d97821ew__lyceummb8b__ou@raiden.beget.ru designates 5.181.111.32 as permitted sender) client-ip=5.181.111.32; Authentication-Results: mx.google.com; dkim=pass header.i=@lyceummb8b.online header.s=beget-php header.b=PxGvuZj2; spf=pass (google.com: domain of d97821ew__lyceummb8b__ou@raiden.beget.ru designates 5.181.111.32 as permitted sender) smtp.mailfrom=d97821ew__lyceummb8b__ou@raiden.beget.ru; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lyceummb8b.online DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lyceummb8b.online; s=beget-php; h=Message-ID:Date:From:Content-type: MIME-Version:Subject:To:Sender:Reply-To:Cc:Content-Transfer- Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent- Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List- Post:List-Owner:List-Archive; bh=WZXWKavULKb2U/jrynVGCGloef0WmiXUVrvpErHC/+k=; b=PxGvuZj2aD/PeW0HuDx1bKR+W AEyr35qQfohpEEGUiWJsACFzFYBneR3CstL1YcP/8MnQzeGxGyGnBVsEPYiSBclnLgIIvbSkS2h7A Sg+QVLc4XhxHjOny4dEvG77NN++ED5APkYl01wVxEZL1eucQ9GaFRCRPnbYd1W9iHVaQI=; Received: from d97821ew (Authenticated sender d97821ew@raiden.beget.ru) by raiden.beget.ru with local (Exim 4.92-beget) (envelope-from ) id 1iaykf-0002Xd- Av for egorhan2005@gmail.com; Sat, 30 Nov 2019 12:09:17 +0300 To: egorhan2005@gmail.com Subject: Проверка Email MIME-Version: 1.0 Content-type: text/plain;charset=utf-8 From: "Электронный дневник 8 \"Б\"" Date: Sat, 30 Nov 2019 11:09:17 +0200 X-Priority: 1 (Highest) Importance: High Message-ID: <1575104957-1ca41fbcc893a9d3b10971dd1ddf9762@lyceummb8b.online>Здравствуйте! Перейдите по ссылке , чтобы подтвердить электронную почту дневника.
https://lyceummb8b.online/confirm?code=f46eea1ac9bb9db6b5ec3e8c3e7ebf0e


Cannot receive or send emails on my company mails

$
0
0

I have this issue, I am not able to send or receive emails when I send them for example from: info@example.com to enq@example.com if I send an email to external mail service such as gmail, yahoo, hotmail everything is delivered as should and also I can receive emails from external services perfectly fine. I am using php mail to send, also I am using VPS with CentOS and ISPconfig ( no Cpanel ). Is there something I can do to fix this?

send No-reply email from firebase using python [closed]

$
0
0

is there any facility that help me out in sending no-reply email from firebase using pyhton without uisng any services of google.If it so,then kindly provide metodolgy from the same and my python app is upload on heroku server

Should you always remove the dots when normalising email?

$
0
0

I am looking at all the modules out there for email normalisation, and most seem to remove the dots in an email by default. I know that Gmail ignore dots but I was under the impression that many other providers do not.

Obviously I don't want users to create multiple accounts from the same address but I am more concerned that many people won't be able to create one at all.

One option would be to only remove dots for certain emails I guess...

Any advise in this area would be much appreciated!

How do i create popup email signup on wordpress

$
0
0

please I am trying to make a window popup to new users on my blog asking them to drop their e-mail address,how do I do that on wordpress

How do you reset the HTML cache in macOS Mail?

$
0
0

I'm developing an app that sends HTML mail. I just condensed all of my CSS code into a .css file that is now linked in the mail header:

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link href="https://example.com/mycss.css" rel="stylesheet">
</head>

<body class="email-body">

...etc...

I discovered a mistake in the .css file, re-uploaded it to example.com, and now for the life of me I can't get Mail to use it properly. Mail must still have the old .css file cached.

I know with Safari I can clear the cache with the Safari -> Clear History menu item. How do I do this in Mail?

Why is my PHP not working in HTML and not sending email for contact form? [duplicate]

$
0
0

This question already has an answer here:

my portfolio12/inc/sendEmail.php code:

<?php

// Replace this with your own email address
$siteOwnersEmail = 'mohammed.solanki@somaiya.edu';


if($_POST) {

   $name = trim(stripslashes($_POST['contactName']));
   $email = trim(stripslashes($_POST['contactEmail']));
   $subject = trim(stripslashes($_POST['contactSubject']));
   $contact_message = trim(stripslashes($_POST['contactMessage']));

   // Check Name
    if (strlen($name) < 2) {
        $error['name'] = "Please enter your name.";
    }
    // Check Email
    if (!preg_match('/^[a-z0-9&\'\.\-_\+]+@[a-z0-9\-]+\.([a-z0-9\-]+\.)*+[a-z]{2}/is', $email)) {
        $error['email'] = "Please enter a valid email address.";
    }
    // Check Message
    if (strlen($contact_message) < 15) {
        $error['message'] = "Please enter your message. It should have at least 15 characters.";
    }
   // Subject
    if ($subject == '') { $subject = "Contact Form Submission"; }


   // Set Message
    $message .= "Email from: " . $name . "<br />";
    $message .= "Email address: " . $email . "<br />";
    $message .= "Message: <br />";
    $message .= $contact_message;
    $message .= "<br /> ----- <br /> This email was sent from your site's contact form. <br />";

   // Set From: header
   $from =  $name . "<" . $email . ">";

   // Email Headers
    $headers = "From: " . $from . "\r\n";
    $headers .= "Reply-To: ". $email . "\r\n";
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";


   if (!$error) {

      ini_set("sendmail_from", $siteOwnersEmail); // for windows server
      $mail = mail($siteOwnersEmail, $subject, $message, $headers);
        header ("Location: ../index.html");
        if ($mail) { echo "OK"; }
      else { echo "Something went wrong. Please try again."; }

    } # end if - no validation error

    else {

        $response = (isset($error['name'])) ? $error['name'] . "<br /> \n" : null;
        $response .= (isset($error['email'])) ? $error['email'] . "<br /> \n" : null;
        $response .= (isset($error['message'])) ? $error['message'] . "<br />" : null;

        echo $response;

    } # end if - there was a validation error

}

?>

my portfolio12/index.html code:

<div class="row contact-form">

        <div class="col-twelve">

            <!-- form -->
            <form name="contactForm" id="contactForm" method="post" action="/inc/sendEmail.php">
                <fieldset>

                  <div class="form-field">
                           <input name="contactName" type="text" id="contactName" placeholder="Name" value="" minlength="2" required="">
                  </div>
                  <div class="form-field">
                       <input name="contactEmail" type="email" id="contactEmail" placeholder="Email" value="" required="">
                   </div>
                  <div class="form-field">
                           <input name="contactSubject" type="text" id="contactSubject" placeholder="Subject" value="">
                   </div>                       
                  <div class="form-field">
                        <textarea name="contactMessage" id="contactMessage" placeholder="message" rows="10" cols="50" required=""></textarea>
                   </div>                      
                 <div class="form-field">
                     <button class="submitform">Submit</button>
                     <div id="submit-loader">
                        <div class="text-loader">Sending...</div>                             
                          <div class="s-loader">
                                    <div class="bounce1"></div>
                                    <div class="bounce2"></div>
                                    <div class="bounce3"></div>
                                </div>
                            </div>
                  </div>

                </fieldset>
            </form> <!-- Form End -->

            <!-- contact-warning -->
            <div id="message-warning">              
            </div>            
            <!-- contact-success -->
            <div id="message-success">
               <i class="fa fa-check"></i>Your message was sent, thank you!<br>
            </div>


   <div id="preloader"> 
        <div id="loader"></div>
   </div> 


   <!-- Java Script
   ================================================== --> 
   <script src="js/jquery-2.1.3.min.js"></script>
   <script src="js/plugins.js"></script>
   <script src="js/main.js"></script>

</body>

</html>

I get The Loading Screen again i don't know why but yeah. The one in the in my index.html file. I tried removing it but still that page pops up and doesn't send any email. How do I fix this issue? What is wrong with my code?

I get The Loading Screen again i don't know why but yeah. The one in the in my index.html file. I tried removing it but still that page pops up and doesn't send any email. How do I fix this issue? What is wrong with my code?

I get The Loading Screen again i don't know why but yeah. The one in the in my index.html file. I tried removing it but still that page pops up and doesn't send any email. How do I fix this issue? What is wrong with my code?

Reading attributes of .msg file

$
0
0

I am trying to read a .msg file to get the sender, recipients, and title.

I'm making this script for my workplace where I'm only allowed to install default python libraries so I want to use the email module to do this.

On the python website I found some examples of using the email module. https://docs.python.org/3/library/email.examples.html

Near the end of the page it talks about getting the sender, subject and recipient. I've tried using this code like this:

# Import the email modules we'll need
from email import policy
from email.parser import BytesParser

with open('test_email.msg', 'rb') as fp:
    msg = BytesParser(policy=policy.default).parse(fp)

# Now the header items can be accessed as a dictionary, and any non-ASCII will
# be converted to unicode:
print('To:', msg['to'])
print('From:', msg['from'])
print('Subject:', msg['subject'])

This results in an output:

To: None
From: None
Subject: None

I checked the file test_email.msg, it is a valid email.

When I add a line of code

print(msg) 

I get an output of a garbled email the same as if I opened the .msg file in notepad.

Can anybody suggest why the email module isn't finding the sender/recipient/subject correctly?


SharePoint Work Flow -Mail mutiple list items

$
0
0

I am creating a workflow to trigger mail to set of users in a group A when new item is added to a list X.

List X has n items and all the few columns are need to be in mail content as part of the workflow.

My work flow always mails only the top most(recent) item from the list. Is there an option to loop through the list items in Sharepoint workflow?

How to properly send emails from hmailserver?

$
0
0

What I have

So, first things first:

  • At this moment I can send emails from my computer using Wamp, PHP, Sendmail, and Hmailserver ONLY to Online Email Generators.

  • I can also send to Gmail but it will always go to spam folder because, like Hotmail I will need to have an SSL certificate for proper authentication. At this moment I'm always blocked by Hotmail/Outlook because I don't have a certificate.

  • I'm unable to receive emails from Gmail or Hotmail/Outlook.

  • I have set up a no-ip domain name and I can access the server from outside.

This is what I have until this moment, and what I think I will need.

What I want to be able to do

  • I want to be able to send many emails to any email service around the world.

  • I don't want other ideas like using limited SMTP's like Gmail's, or any other.

  • I don't want to use Bulk Mail services.

The Catch

  • The thing is that I no nothing about SSL Certificates, it is the first time I think I really have to use them.

  • I have spent countless hours in Hmailserver's forum looking for answers like:

    • Do I really need to use an SSL Certificate ?
    • Do I need one for each Email Service (that would be really confusing/sad!) ?
    • Or can I use one Certificate for all of this Email Services ?
    • How can I have a Certificate for each Email Service when there's only space for one Certificate in (Hmailserver) ?
    • How can I easily create the proper Certificate that I need ?
  • So, this seems to be very hard for novices like me, and seems to be too much questions, but I know that for a guy that has done this it is actually a very simple and straight forward process... It's just a little step-by-step thing that just eliminates all of this little questions immediately. And of course this questions have to be made all at once, because doing it separately (like they are in Hmailserver forum) is just a mess!

What would be a very good answer

  • One that I can wait as time as needed, but that really nails it.

  • A positive, focused, simple to understand and straight forward one.

  • An answer that tells me if I can do it, and how to do it, starting from the possibility of using only one certificate to the end process of generating and placing the Certificate in Hmailserver (one bad step and everything fails...)!!!

  • An answer from someone that as done this! For this person this is actually simple stuff..

Setting up SMTP Server on IIS to send through another domain's inbox for accurate SPF Records

$
0
0

We host many subdomains on "client.domain.com". One of the clients was complaining about the SPF records not having the IP address listed. I've tried setting up the SPF record for "client.domain.com" to include the subdomain's IP address. However my concern is that because we're using SMTP server on IIS to send out the emails, they are still being marked as spoofed. The web app allows you to choose what email domain to send emails out from, and I've tried setting up IIS to relay to an actual email account (using real credentials) but this doesn't work. Emails only get sent out when you set SMTP to allow anonymous connections and for the web app to specify the email account name (without actually putting in the real email credentials).

My question is: will this type of SMTP setup allow for accurate SPF records?

Facing connection reset and timeout error while sending email through sendmail via smtp. How to fix this?

$
0
0

i've got a problem configuring sendmail to send email through smtp. My goal is to have the ability to send mail from a php application using smtp. I've to migrate to a new server some old legacy php application which use the standard "mail()" php function, and i can't modify the code, so i can't just use something like "phpMailer" or "pear mail package" instead.

I've followed this guide (venice answer) sendmail: how to configure sendmail on ubuntu? , and watched many other that say the same thing...

I've already installed and configured sendmail, and it works fine for sending local mail (if i send an email to root@localhost, i receive it correctly) but not for sending "normal" email.. Every time i send an email i've got these error in the mail.log file:

Nov 26 15:38:17 compute-prod-main-2-vm sm-mta[22434]: xAQFcH3g022434: from=<Mattia@compute-prod-main-2-vm.europe-west1-b.c.fine-command-242712.in>, size=418, class=0, nrcpts=1, msgid=<201911261538.xAQFcHXA022433@compute-prod-main-2-vm.europe-west1-b.c.fine-command-242712.in>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Nov 26 15:38:17 compute-prod-main-2-vm sendmail[22433]: xAQFcHXA022433: to=mattiabonzi@libero.it, ctladdr=Mattia (1002/1005), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30105, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (xAQFcH3g022434 Message accepted for delivery)
Nov 26 15:38:33 compute-prod-main-2-vm sendmail[22444]: xAQFcXYx022444: from=Mattia, size=80, class=0, nrcpts=1, msgid=<201911261538.xAQFcXYx022444@compute-prod-main-2-vm.europe-west1-b.c.fine-command-242712.in>, relay=root@localhost
Nov 26 15:38:33 compute-prod-main-2-vm sm-mta[22445]: xAQFcXOb022445: from=<Mattia@compute-prod-main-2-vm.europe-west1-b.c.fine-command-242712.in>, size=469, class=0, nrcpts=1, msgid=<201911261538.xAQFcXYx022444@compute-prod-main-2-vm.europe-west1-b.c.fine-command-242712.in>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Nov 26 15:38:33 compute-prod-main-2-vm sendmail[22444]: xAQFcXYx022444: to=mattiabonzi@openworks.it, ctladdr=Mattia (1002/1005), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30080, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (xAQFcXOb022445 Message accepted for delivery)
Nov 26 15:38:37 compute-prod-main-2-vm sm-mta[21588]: xAQFXbC8021586: timeout waiting for input from authsmtp.securemail.pro during client greeting
Nov 26 15:38:37 compute-prod-main-2-vm sm-mta[21588]: xAQFXbC8021586: to=<mattiabonzi@libero.it>, delay=00:05:00, xdelay=00:05:00, mailer=relay, pri=120418, relay=authsmtp.securemail.pro [81.88.48.66], dsn=4.0.0, stat=Deferred: Connection timed out with authsmtp.securemail.pro
Nov 26 15:41:00 compute-prod-main-2-vm sm-mta[21743]: xAQFa0cV021741: timeout waiting for input from authsmtp.securemail.pro during client greeting
Nov 26 15:41:00 compute-prod-main-2-vm sm-mta[21743]: xAQFa0cV021741: to=<mattiabonzi@libero.it>, delay=00:05:00, xdelay=00:05:00, mailer=relay, pri=120418, relay=authsmtp.securemail.pro [81.88.48.66], dsn=4.0.0, stat=Deferred: Connection timed out with authsmtp.securemail.pro
Nov 26 15:42:02 compute-prod-main-2-vm sm-mta[21765]: xAQFb1PN021763: timeout waiting for input from authsmtp.securemail.pro during client greeting
Nov 26 15:42:02 compute-prod-main-2-vm sm-mta[21765]: xAQFb1PN021763: to=<mattiabonzi@libero.it>, delay=00:05:01, xdelay=00:05:01, mailer=relay, pri=120418, relay=authsmtp.securemail.pro [81.88.48.66], dsn=4.0.0, stat=Deferred: Connection timed out with authsmtp.securemail.pro
Nov 26 15:43:06 compute-prod-main-2-vm sm-mta[22415]: xAQFNe4X021461: to=<mattiabonzi@libero.it>, delay=00:19:26, xdelay=00:05:00, mailer=relay, pri=210466, relay=authsmtp.securemail.pro [81.88.48.66], dsn=4.0.0, stat=Deferred: Connection reset by authsmtp.securemail.pro
Nov 26 15:43:06 compute-prod-main-2-vm sm-mta[22415]: xAQFH7gj020614: to=<mattiabonzi@libero.it>, delay=00:25:59, xdelay=00:00:00, mailer=relay, pri=300466, relay=authsmtp.securemail.pro, dsn=4.0.0, stat=Deferred: Connection reset by authsmtp.securemail.pro
Nov 26 15:43:06 compute-prod-main-2-vm sm-mta[22415]: xAQFBfZq020461: to=<mattiabonzi@openworks.it>, delay=00:31:25, xdelay=00:00:00, mailer=relay, pri=300469, relay=authsmtp.securemail.pro, dsn=4.0.0, stat=Deferred: Connection reset by authsmtp.securemail.pro
Nov 26 15:43:06 compute-prod-main-2-vm sm-mta[22415]: xAQEkePb016232: to=<mattiabonzi@openworks.it>, delay=00:56:26, xdelay=00:00:00, mailer=relay, pri=390469, relay=authsmtp.securemail.pro, dsn=4.0.0, stat=Deferred: Connection reset by authsmtp.securemail.pro
Nov 26 15:43:06 compute-prod-main-2-vm sm-mta[22415]: xAQEkfdA016262: to=<mattiabonzi@openworks.it>, delay=00:56:25, xdelay=00:00:00, mailer=relay, pri=390469, relay=authsmtp.securemail.pro, dsn=4.0.0, stat=Deferred: Connection reset by authsmtp.securemail.pro
Nov 26 15:43:06 compute-prod-main-2-vm sm-mta[22415]: xAQEkgiG016272: to=<mattiabonzi@openworks.it>, delay=00:56:24, xdelay=00:00:00, mailer=relay, pri=390469, relay=authsmtp.securemail.pro, dsn=4.0.0, stat=Deferred: Connection reset by authsmtp.securemail.pro
Nov 26 15:43:06 compute-prod-main-2-vm sm-mta[22415]: xAQEkfEJ016252: to=<mattiabonzi@openworks.it>, delay=00:56:25, xdelay=00:00:00, mailer=relay, pri=390469, relay=authsmtp.securemail.pro, dsn=4.0.0, stat=Deferred: Connection reset by authsmtp.securemail.pro

This is what i've initialy added to the sendmail.mc file

define(`SMART_HOST',`authsmtp.securemail.pro')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl

I've made some research and understood that the problem may be the port that sendmail is using for the smtp connection. i've tried to telnet my isp and i'm able to contact it only on port 465, but i cannot find a way to change the port that sendmail is using.

I've tried to add those line, but with no luck:

define(`ESMTP_MAILER_ARGS', `TCP $h 465')dnl
define(`RELAY_MAILER_ARGS', `TCP $h 465')dnl

I've also noticed that one antoher server that i have with sendmal instaled and propely configured is using the mailer esmtp, this installation use insted relay, is that normal?

What i'm doing wrong? Thank yuo in advance, hope that i've listed all the relevant details.

Why do I get this message in Hmailserver?

$
0
0

I got this error in hmailserver:

RECEIVED: 550 5.7.1 Service unavailable, Client host [ip] blocked using Spamhaus. To request removal from this list see ...

Do I need an SSL Certificate to be able to send emails to Outlook, Gmail, etc...?

What I have

So, first things first:

  • At this moment I can send emails from my computer using Wamp, PHP, Sendmail, and Hmailserver ONLY to Online Email Generators.

  • I can also send to Gmail but it will always go to spam folder because, like Hotmail I get some kind of blocking.

  • I'm unable to receive emails from Gmail or Hotmail/Outlook.

  • I have set up a no-ip domain name and I can access it from outside.

  • In Hmailserver > Advanced > Ip ranges >"Require SMTP Authentication" I have checked all fields

  • I have tried both ports 25 and 587.

  • Hmailserver > Settings > Protocols > SMTP > Delivery of email tab > I have premiumnews.ddns.net

What I want to be able to do

  • I want to be able to send many emails to any email service around the world (for legitimate purposes).

  • I don't want other ideas like using limited SMTP's like Gmail's, or any other.

  • I don't want to use Bulk Mail services.

Can I set up HTML/Email Templates with ASP.NET?

$
0
0

I'm working on a site that will send out a significant number of emails. I want to set up both header and footer text, or maybe even templates to allow the users to easily edit these emails if they need to.

If I embed the HTML inside C# string literals, it's ugly and they would have to worry about escaping. Including flat files for the header and footer might work, but something about it just doesn't feel right.

What would be ideal what be to use a .ASPX page as a template somehow, then just tell my code to serve that page, and use the HTML returned for the email.

Is there a nice and easy way to do this? Is there a better way to go about solving this problem?

Updated:
I added an answer that enables you to use a standard .aspx page as the email template. Just replace all the variables like you normally would, use databinding, etc. Then just capture the output of the page, and voila! You have your HTML email!

UPDATED WITH CAVEAT!!!:
I was using the MailDefinition class on some aspx pages just fine, but when trying to use this class during a server process that was running, it failed. I believe it was because the MailDefinition.CreateMailMessage() method requires a valid control to reference, even though it doesn't always do something. Because of this, I would recommend my approach using an aspx page, or Mun's approach using an ascx page, which seems a little better.

to send email by pure javascript [duplicate]

$
0
0

This question already has an answer here:

I know no backend language to send email directly from webpage. I wanna know if there is a way to do so with just javascript like having or writing a function that does the job? actually I don't need to show the sent emails on the webpage or save them anywhere, just want to receive them on inbox

(I already know about mailto but surely it does not send emali directly )


Editing of SPF, DKIM, and RDNS records in Duckdns [closed]

$
0
0

I want to edit SPF, DKIM, and RDNS records in Duckdns, but I don't know how stable it is, if this will even work and how to do it properly. I have never done it.

It seems like this is done via Get var..

I have tried no-ip and dynu, but they do not provide this service for free, although this is much easier to do in their services.

I need this for a mail server..

Any help?

Why does my PHP code send some empty emails and some filled out? [duplicate]

$
0
0

This question already has an answer here:

The problem is that when a user sends a filled out form I am receiving empty emails, not even the form outline - completely empty besides the subject line. All the id's from the form match the $_POST data in PHP so I am not sure why it is sending empty emails. Does the mail function not work very well?

My HTML:

<form method="post" action="message-sent.php" id="contactForm">
            <p>Send us a message!</p>
            <input type="hidden" name="subject" value="Message from
              gamestogo.ca">
            <div>
              <div>
                <input
                  name="fullname" type="text" placeholder="Full Name"
                  id="fullName">
              </div>
              <div>
                <input
                  name="phone" type="tel" placeholder="Phone Number"
                  id="phoneNum">
              </div>
              <div>
                <input
                  name="email" type="email" placeholder="Email" id="email"
                  required>
              </div>
              <div>
                <input
                  name="neighbourhood" type="text" placeholder="Neighbourhood"
                  id="neighbourhood" required>
              </div>
              <div>
                <input
                  name="people" type="text"
                  placeholder="Approximate Number of People"
                  id="numPeople" required>
              </div>
              <div>
                <input
                  name="preferreddate" type="text"
                  placeholder="Preferred Date & Time"
                  id="date">
              </div>
              <div>
                <select
                  name="serviceStyle" placeholder="Preferred Service Style"
                  id="serviceStyle">
                  <option value="">Your preferred service style</option>
                  <option value="Not Sure" style="padding-top: 1.5rem;
                    padding-bottom: 1.5rem;">Not Sure</option>
                  <option value="Curbside">Curbside - Gaming party outside your
                    home</option>
                  <option value="In-House">In-House - Gaming party inside your
                    home</option>
                </select>
              </div>
              <div>
                <textarea 
                  name="comment" id="comments" rows="6"
                  placeholder="Any Questions?"></textarea>
              </div>
              <button name="submit">Send Message</button>
            </div>
</form>

My PHP:

<?php
    $now = date("D M j G:i:s T Y");
    $toAddress = "info@gamestogo.ca";
    $from = $_POST['email'];
    $fromAddress = "From:" . $from ."\r\n" .
       "Reply-To:" . $_POST['email'] . "\r\n" .
       "X-Mailer: PHP/" . phpversion();

    if($from <> ""){
        $body  = "Please find your message from gamestogo.ca below:\n\n";
        $body .= "From: " . $_POST['fullname'] . "\n";
        $body .= "Phone: " . $_POST['phone'] . "\n";
        $body .= "Email: " . $_POST['email'] . "\n";
        $body .= "Neighbourhood: " . $_POST['neighbourhood'] . "\n";
        $body .= "Preferred Service Style: " . $_POST['serviceStyle'] . "\n";
        $body .= "Number of people: " . $_POST['people'] . "\n";
        $body .= "Preferred Date: " . $_POST['preferreddate'] . "\n";
        $body .= "Comments: " . $_POST['comment'] . "\n";

        mail($toAddress, "Form Submit from gamestogo.ca.", $body, $fromAddress);

        $arr = array ('success'=>true, 'message'=>"Thank you for your inquiry, we'll get back to you soon.");
        header('Location: confirmation.html');
        exit();
    }
    else{
        $arr = array ('success'=>false, 'message'=>"Please fill in required fields.");
        header('Location: error.html');
        exit();
    }

Craft - Dynamically adding email recipients error

$
0
0

Currently working on dynamically adding email recipients into my Craft Contact Form. My current setup follows the instructions on the contact form github exactly.

In my form I've added the following line:

<input type="hidden" name="toEmail" value="{{ 'me@example.com'|hash }}" />

In config/contact-form.php I've added the following:

<?php

$config = [];
$request = Craft::$app->request;

if (
    !$request->getIsConsoleRequest() &&
    ($toEmail = $request->getValidatedBodyParam('toEmail')) !== null
) {
    $config['toEmail'] = $toEmail;
}

return $config;

The error which I'm getting is:

HTTP 400 - Request contained an invalid body param

The toEmail field is getting to the contact-form.php it just seems to fail on validation? Whenever I change the name of the input field to whatever name="toEmailxxx" it just sends it correctly to the email set in the CMS settings.

How can I resolve this issue?

How Do I Add Inline CSS Styles To Gmail Email (SES sendRawEmail)?

$
0
0

I am using amazon SES to send HTML emails using the node.js aws-sdk library. Here is the js script that I'm using to send it:

export const main: APIGatewayProxyHandler = async (event, _context) => {

  const success = await sendEmail()

  return {
    statusCode: 200,
    body: JSON.stringify({
      message: 'Done!',
      input: event,
    }, null, 2),
  };

}

const sendEmail = async () => {

  const fileName = "2019-W-4.pdf";
  var rawMailBody = "From: jim@bubbleflumps.com\n";
  rawMailBody = rawMailBody + "To: jim@bubbleflumps.com\n";
  rawMailBody = rawMailBody + "Subject: Test Subject Dueces 3\n";
  rawMailBody = rawMailBody + ``
  rawMailBody = rawMailBody + "MIME-Version: 1.0\n";
  rawMailBody = rawMailBody + "Content-Type: multipart/mixed; boundary=\"NextPart\"\n\n";
  rawMailBody = rawMailBody + "--NextPart\n";

  rawMailBody = rawMailBody + "Content-Type: text/html;\n";
  rawMailBody = rawMailBody + "Content-Transfer-Encoding: quoted-printable\n";
  rawMailBody = rawMailBody + "\n";

  const emailData = await getEmailData();

  rawMailBody = rawMailBody + emailData;

  console.log('final body', rawMailBody)

  const params = {
    RawMessage: {
      Data: rawMailBody
    },
    Destinations: [],
    Source: 'jim@bubbleflumps.com'
  };

  ses.sendRawEmail(params, function (err, data) {
    if (err) console.log("Error: " + err);
    else {

      console.log("Success call: ", JSON.stringify(data));
      return data
    }

  });

}

const getEmailData = () => {

  return new Promise( (resolve, reject) => {

    var output = '\n';

    var readerStream = readline.createInterface({
      input: require('fs').createReadStream('./simple.html')
    });

    readerStream.on('line', function (line) {
      const newLine = line;
      output = output + newLine;
      console.log('reading...', line)
    });

    readerStream.on('close', () => {
      console.log('closing...' , output)
      output = output + "\n";
      resolve(output);
    });

  })

}

And here is the "simple.html" file that I am reading and inserting into the email:

<html>

<body>
    <table style="background-color: #737373; color: orange;">
        <tr>
            <td style="background-color: #737373; color: orange;">

                <span style="background-color: #737373; color: orange">

                    Hello!
                    Hello2!
                </span>
                </th>
                <h2>More cool Stuff!</h1>
                    <pre>some pre text...!</pre>
                    <p>Please see the attached file for a list of customers to contact.</p>
                    <h1>Yaaaaa!</h1>
            </td>
        </tr>
    </table>
</body>

</html>

As you can see I am attempting to style the text "Hello" and "Hello2!" with a grey background and orange color. However, this is what I see in gmail:

enter image description here

It is coming through as HTML, but some reason I cannot get any styles whatsoever to be applied. After looking at other posts everyone says that using inline styles should work, but I AM using inline styles...

Can anyone help point out what I am doing wrong here?

Thanks!

Need to get mail.google.com IP address(es)

$
0
0

I have a server which is locked down to only allow access from specific IP addresses.

Emails sent from this server contain images. When viewed in gmail (http://mail.google.com) the images are obviously blocked as the ip of http://mail.google.com is not allowed via the firewall.

Is there any way I can obtain a list of IPs that the gmail webmail uses?

I have done a DNS lookup which has returned:

74.125.227.149
74.125.227.150

But i'd be surprised if these remain the same or if the public IP is one of these (as they're probably the IPs of their load balancers).

If it's of any use the server I have is on AWS

Viewing all 29772 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>