Meteor,unable to send verification email - meteor

I'm trying to send verification mail but it showing some error
my error is URI malformed
First,error screenshot
I added email package and at the server side i added something like
Accounts.config({
sendVerificationEmail:true
});
i set env_url like this
process.env.MAIL_URL = 'smtp://postmaster%sandbox.mailgun.password#smtp.mailgun.org:587';

URIs use percent encoding for reserved characters, and a % by itself is invalid. Also, there should be a : between the username and the password (see the docs). This should be the format you want:
'smtp://postmaster%40sandbox.mailgun:password#smtp.mailgun.org:587'
which decodes to:
'smtp://postmaster#sandbox.mailgun:password#smtp.mailgun.org:587'

Related

MailKit returns empty From on a fetch

I was testing MailKit with Fetch on the mail Envelope. summary.Envelope.From[0] gave an exception after getting emails from the mail server. On inspection, the From field is shown on the original mail file as:
...
...
From: Root User <>
...
Gmail shows this mail as (unknown sender)
I can attach the header if necessary. Is there a standard way to deal with this?
Yes, you can do what GMail does which is effectively:
if (summary.Envelope.From.Count == 0)
return "(unknown sender)";

CDO.Message To and From Fields Changed to "Friendly Name" and Email Address

When I first created this Classic ASP script, with the help of W3Schools, to send email, it worked fine. Now I'm having issues with sending the actual email; it appears to hang on the .Send method.
I noticed that when I set the To and From email address to just the email address, it reformats it to a "Friendly Name"/Email Address format:
myMail.From="Support#myDomain.com"
Response.Write myMail.From
The output of the Response Write is:
"Support#myDomain.com" <Support#myDomain.com>
I don't know if this was happening before, or if I should be setting the To and From fields in this format. Just to check if this is causing my problem, is there anyway to prevent these fields from being changed from just the email address?
Maybe the e-mail sending from the server now needs some kind of authentication such as setting these fields:
' Outgoing SMTP server.
objCDO.Configuration.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.mydomain.com"
objCDO.Configuration.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objCDO.Configuration.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objCDO.Configuration.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
' Type of authentication, 0=NONE, 1-Basic (Base64 encoded), and 2=NTLM.
objCDO.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
' UserID on the SMTP server
objCDO.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "support#mydomain.com"
' Password on the SMTP server
objCDO.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "myemailpassword"
' Update config.
objCDO.Configuration.Fields.Update
The issue stemmed from the fact that the "From" email address was actually a distribution list and the account credentials used to login to the email server were not authorized to "Send As". Once that was rectified emails sent without further problems.
Thanks for the response.

Bosun: send authentication token in the notification section

I want Bosun to make an API call to JIRA, which requires a basic authentication in a form of BASE64 encoded string username:password. What keyword I can use in the notification definition to pass the authentication token to JIRA? My basic notification looks like this:
notification jira_alert {
post = https://example.com:8081/rest/api/2/issue/createmeta
contentType = application/json
Reading the documentation on bosun.org I can't find any specific keyword I could use. Any hints?
Can you put put the key in URL or in JSON data?
For example:
notifaction chat {
next = email
timeout = 10m
post - http://chat.example.com/room/1?key=KEY&message=whatever
}

MailHost: sending out email

How one could do / where in Plone source code could be an example code for sending out MailHost emails
Message payload is a text string, not template
Sends out plaintext email, utf-8 encoded, both subject and message
From: header is set correctly having both name and email address visible
This doc could help :
http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-3-x-to-4.0/updating-add-on-products-for-plone-4.0/mailhost.securesend-is-now-deprecated-use-send-instead

Node.js HTTPS request with username

I'm trying to query api.whatever.com, but I also want to pass a USERNAME, such as in curl it would look like this:
https://USERNAME#api.whatever.com/
How do I write the client request in such a way that USERNAME gets sent properly to the API server.
You need to base64 encode the username.
url = "https://USERNAME#api.whatever.com/".replace("https://","").split("#");
// Buffer is global, no need for require.
url64 = "https://" + (new Buffer(url[0]).toString('base64')) + url[1];
http://en.wikipedia.org/wiki/Basic_access_authentication
There's an explaination of the format you have to use as well as an example.

Resources