logo
Tags down

shadow

this.smtpServersettings is sending mail to undelivered options instead of gmail


By : Alex Beyer
Date : July 30 2020, 03:00 PM
should help you out Unfortunately, as is too often the case, CF added a feature that was incomplete a decade ago and still has not fixed. The smtpServerSettings struct does not support port and usetls.
https://tracker.adobe.com/#/view/CF-4204467
code :


Share : facebook icon twitter icon

How to differentiate two web applications's mail in coldfusion 9 undelivered mail folder?


By : Mike Agrapides
Date : March 29 2020, 07:55 AM
will help you I don't think it is an option to identify apps that send emails in cf administrator.
You may have to use the tag in sending emails to identify the application:
code :
<cfmailparam name="x-app" value="name_of_my_application">

Sending EMail from my Javascript App via GMail API - mail appears in GMail sent list, but isn't delivered to destination


By : RadCoder
Date : March 29 2020, 07:55 AM
wish helps you Your code is doing an insert(). Do a send() instead:
code :
var path = "gmail/v1/users/me/messages/send?key=" + CLIENT_ID;

Sending e-mail with GMail API in PHP


By : Hemendra
Date : March 29 2020, 07:55 AM
it helps some times This working example is using a service account, please adjust to suit your needs:
code :
    $user_to_impersonate = "email_to_impersonate@yourdomain.com";
    putenv("GOOGLE_APPLICATION_CREDENTIALS=google-api-php-client/service-account-credentials.json");
    $client = new Google_Client();
    $client->useApplicationDefaultCredentials();
    $client->setSubject($user_to_impersonate);
    $client->setApplicationName("My Mailer");
    $client->setScopes(["https://www.googleapis.com/auth/gmail.compose"]);
    $service = new Google_Service_Gmail($client);
    // Process data
    try {
        $strSubject = "Set the email subject here";
        $strRawMessage = "From: Me<myemail@mydomain.com>\r\n";
        $strRawMessage .= "To: Foo<foo@gmail.com>\r\n";
        $strRawMessage .= "CC: Bar<bar@gmail.com>\r\n";
        $strRawMessage .= "Subject: =?utf-8?B?" . base64_encode($strSubject) . "?=\r\n";
        $strRawMessage .= "MIME-Version: 1.0\r\n";
        $strRawMessage .= "Content-Type: text/html; charset=utf-8\r\n";
        $strRawMessage .= "Content-Transfer-Encoding: base64" . "\r\n\r\n";
        $strRawMessage .= "Hello World!" . "\r\n";
        // The message needs to be encoded in Base64URL
        $mime = rtrim(strtr(base64_encode($strRawMessage), '+/', '-_'), '=');
        $msg = new Google_Service_Gmail_Message();
        $msg->setRaw($mime);
        //The special value **me** can be used to indicate the authenticated user.
        $service->users_messages->send("me", $msg);
    } catch (Exception $e) {
        print "An error occurred: " . $e->getMessage();
    }

Image not showing in gmail mail body after sending it from asp.net c# net.mail as mail.body


By : Daniel Eagle
Date : March 29 2020, 07:55 AM
should help you out Base64 images are currently not supported by most email readers. Very unfortunate. You'll need to generate an actual image and attach it to the message with a unique id (like a GUID) and then use that ID as the image tag's src along with the CID prefix.
code :
<img src="cid:GeneratedUniqueId" alt="Your QR Code" />

Issue in sending a mail to gmail account using spring mail


By : CONOR HEFFERNAN
Date : March 29 2020, 07:55 AM
it should still fix some issue Google has changed the policies, you need to allow your account to be accessed by applications.
I came across an issue yesterday and received this email via google.com
shadow
Privacy Policy - Terms - Contact Us © voile276.org