I have a weird problem with Postfix blocking some e-mails due to a smtpd_helo_restrictions rule. That looks like this:
smtpd_helo_restrictions =
permit_mynetworks,
reject_invalid_hostname,
reject_non_fqdn_hostname
The error is that HSI-BW-078-042-xxx-xxx.hsi3.kabel-badenwuerttemberg.de (the last two octets are actually not xxx) apparently is not a FQDN although it looks like one for me. Did I miss something?
Nevermind, my bad. I looked in the wrong spot. The HELO command didn't include the FQDN, but "JohnsPC". Great job, Outlook!
Related
I want to be able to block web-crawlers from accessing pages other than page1.
The following should be able to block all directories/file names containing the word page. So something like /localhost/myApp/page2.xhtml should be blocked.
#Disallow: /*page
The following should enable all directories/file names containing page1 to be accessible. So something like /localhost/myApp/page1.xhtml should not be blocked.
#Allow: /*page1
The problem is crawler4j seems to ignoring the astericks which is used for wildcards. Is something wrong with my robots.txt or is the astericks something crawler4j does not interpret by default.
I looked through the crawler4j source code, and it looks like crawler4j does not support wildcards in Allow or Disallow, except in the special case where the asterisk is the last character in the directive. (and then the asterisk is ignored anyway)
I have this code:
<cfdump eval=server>
And it outputs top-level keys for coldfusion, java, lucee, os, separator, servlet. Note that railo is not listed there.
However if I do this:
<cfdump eval=server.railo>
It then outputs the usual struct one might expect when running a Railo server (as opposed to a Lucee server).
What's up with that?
see: https://groups.google.com/d/msg/lucee/1asgCDwC_tE/-gtE06lkjuEJ
"server.railo" is supported as an alias for "server.lucee", we did this to make sure code like the following still work
if(server.railo.version>"4.0.0.000");
We saw this as an hidden feature for backward compatibility, because of that it is not shown with the dump or structKeyList, but structKeyExists should also return false, we will change this for the next patch release...
best use "server.coldfusion.productName" instead.
Does JMail accepts delimiter(;) or comma(,) as a separator between different email address like CDO.Message.
For example, we can write,
Mail.To="a#a.com,b#b.com" in CDO.Message.
Does the same is valid for JMAIL like the one below.
jMail.AddRecipient ("a#a.com,b#b.com")
I know we can add multiple recipients by calling the AddRecipient again and again but my question is can we do it in a single line like in CDO.Message?
yes you can add multiple recipients by calling the AddRecipient
Yes, you can.
I spent some time figuring this out as well. I tried the recommended array() of recipients but that did not seem to work. The only thing which worked for me so far was a properly formatted multiple recipient string:
$jmail->addRecipient('recipient1#site.com','recipient2#site.com','recipient3#site.com');
Please note the ["] markup. If you replace the ["] with ['] it will not work. It's little "delicate" this way :)
I am using jMail with PHP/COM extension but I am sure you can reuse this principle for ASP or any other language.
I hope this helped.
In ASP.NET I am sending a MailMessage but it won't go through. The code I am using is
message.To.Add(email1 + ", " + email2 + ", " + email3);
When I do this I never receive my mail. However if I use this code:
message.To.Add(email1 + ", " + email2);
It sends just fine every time. Anybody know what is going on here? All 3 emails are the same (for testing purposes) and have been verified to be correct while debugging. I tried inserting a different email address for the third and still nothing went through. I may be missing something obvious...
EDIT:
Everyone is telling me to add them individually which may well be good advice if everyone agrees upon it. The reason I didn't do this previously and I just tried it again with three seperate addresses and none of them were sent. Maybe I have another issue entirely if that is supposed to work?
EDIT: For anyone with the same problem in the future here is what I did. When creating the MailMessage I didn't create it with any parameters and instead specified the From parameter seperately. I wrapped the From and all To emails in new MailAddress() and the combination of all those changes appeared to work.
Just call Add multiple times.
The To property of MailMessage is a collection, so you should call
message.To.Add 3 times if want to send to 3 email addresses.
Instead of contencating mail addressed into a single Add statement, you should be adding them one at a time:
message.To.Add(email1);
message.To.Add(email2);
message.To.Add(email3);
Since you're adding to a collection.
Also, if the addresses are the same, the function usually doesn't add it twice in my experience. This may be a behavior of the Mailmessage.To.Add function, or it could be that when it gets to me Outlook has stripped out duplicates, but it looks to me like it filters out duplicates. You may be seeing the same on your system.
Try
message.to.add(email1);
message.to.add(email2);
message.to.add(email3);
message.to.add(email4);
Hope this helps
Harvey Sather
I store message recipients in the web.config file and then handle it like this
string lstrDistributitionList = ConfigurationSettings.AppSettings["SMTP_DISTRIBUTION_LIST"];
string[] lastrDistributitionList = lstrDistributitionList.Split(';');
for (Int32 loopCounter = 0; loopCounter < lastrDistributitionList.Length; loopCounter++)
{
msg.To.Add(lastrDistributitionList[loopCounter]);
}
Harvey Sather
Warning: Non-static method Zend_Controller_Request_Http::getCookie() should not be called statically in..
Iam trying the following to get Cookie values:
$cookieData = Zend_Controller_Request_Http::getCookie($key, $default);
is there an better way to this?
getCookie() method is not static, it should be called on an object.
I believe this code is from your controller, so it should basically look like
$request = $this->getRequest();
$cookieData = $request->getCookie('someCookie', 'default');
This is a slight side note, yet it may just well help avoid long fruitless hours. From my experience, the problems that occur when one cannot retrieve value from $_COOKIE in zf1 and other frameworks occur mostly because setCookie is so easy to use one forgets to add the path and the domain like so:
setcookie('cookieName', 'cookieValue', $finalExpirationTime,'/','.yourdomain.com');
and instead do this:
setcookie('cookieName', 'cookieValue', $finalExpirationTime);
This gets real annoying especially so when working on Windows with ip's instead of actual domains. Another thing to look out for would be the dot (.) in front of the domain. As stated in the manual: Older browsers still implementing the deprecated ยป RFC 2109 may require a leading . to match all subdomains.
Hope this helps