In the IE5.0, not only can Microsoft's Outlook,outlook Express and other e-mail software as the default e-mail software, but also such as Foxmail,hotmail and other non-home software as the default e-mail software, So as to meet the needs of different users and hobbies.
You set the default e-mail software in the following ways:
1 Select the "Internet" option command under the Tools menu;
2 in the Pop-up Options dialog window, click the Programs tab;
3 in the "E-mail" list to choose their pr
Mail command
1. Configure
Vim/etc/mail.rc
Add the following content to the end of the file
Set from=1968089885@qq.com smtp= "smtp.qq.com"
set smtp-auth-user= "1968089885@qq.com" 123456 "
Set Smtp-auth=login
Description
From: The sender that appears when the other person receives the message
SMTP: Specifies the SMTP server address for a third party to send mail
Smtp-auth:smtp authentication method. The default is login, which can also be changed to CRAM-MD5 or plain
Source of information fetching:http://www.tianqi.com/( weather net )mail server (send): 126 mailboxMail server (receive): QQ mailboxThe code is as follows:#!/usr/bin/envpython#-*-coding:utf-8-*-importsmtplibimporturllib, urllib2importre# define function, send mail defsendmail (body):smtp_server= ' Smtp.126.com ' from_mail= ' [emailprotected] ' #密码使用授权码替代, otherwise 535 authentication error will be reported mail_pass= ' ********* ' to_mail=[' [emailprotected] ']from_name= ' Weathermonitor ' su
Using MSMTP, an SMTP client that is lighter than sendmail,postfix. Use your own QQ mailbox (163 ...) e-mail, very suitable.Mac installation is simple, in a word: Brew install MSMTP There are also two files to configure:~/.MAILRC:~/.MSMTP:Official send:Received Luo:PHP sent, with shell_exec and other functions, do not have to say, the command of course support more parameters, detailed reference to the relevant documents or terminal MSMTP--help view. Mac command line
command line execution. It will generate:Mailbox Fetch Result: Result.txtScan trace log: Trace.log, if there is a missing file, there will be "cout:0" word.Three. Exception Handling:1. If the script execution is unsuccessful, first check if the directory named "Fm_temp" exists, delete it.2. If the script execution is unsuccessful, check that the directory is in Chinese.3. Forcibly close the WPS temp file that may be left with a "~" prefix and delete it.4. If the script execution is unsuccessful
When sending an error message, the message cannot be sent: SSL certificate:unable to get local issuer certificateUnder Windows, curl cannot find the CA certificate to verify the other person's certificate!Method One: (Highly not recommended, unsafe)curl_setopt ($ch, Curlopt_ssl_verifypeer, false);Method Two:It's easy to fix (PHP 5.3.7 or higher)-Download a list file with an up-to-date certificate authorities, and the add this set Ting to your php.ini"Curl.cainfo=From Http://stackoverflow.com/que
Spam is annoying, here is a way to automatically screen robots from your site to collect e-mail addresses.
Copy Code code as follows:
function Security_remove_emails ($content) {
$pattern = '/([a-za-z0-9._%+-]+@[a-za-z0-9.-]+\.[ a-za-z]{2,4})/I ';
$fix = Preg_replace_callback ($pattern,
"Security_remove_emails_logic", $content);
return $fix;
}
function Security_remove_emails_logic ($result) {
return AntiSpamBot ($result [1]);
}
Add_filter (' the_content ', ' flex_remove_ema
reference, let the other display at least 1 times, and then end with any character. However, the "W" here is underlined, that is to say, mail like Sofish@163_.com_ is also likely to pass through difficult, apparently, this is an illegal message, at the back of the "." Before, is not to be underlined, and the back, can only be English letters (at least for now I have not seen with the following is a number of domain names). And, what should be noted here is that the characters represented by "W"
if (Eregi (^[_.0-9a-z-]+@) ([0-9a-z][0-9a-z-]+.) +[a-z]$ ", $email)) {
echo "Your e-mail through preliminary check";
}
?>
In this sentence, the first is to apply a eregi function, this function is very good understanding. Find a book and give you an explanation:
Syntax: int ereg (string pattern, string string, array [regs]);
return value: Integer/array
This function resolves string strings using pattern rules.
The value returned by the result is pla
+%y%m%d). sql.tar.gz # define remote FTP information #ftphost=216.18.217.23Ftpname=ninthday_ftpftppasswd=ninthday_passwd # define User #User=ninthday # define addresses for sending and receiving notification messages (must be in different domains) #Sender=root@ninthday.netReceiver=kailash@126.com # Start creating local Files # Mysqldump-u$username-p$password $Name > $Localdir/backups/$LBackname # Compress to Local #Tar zpcf $Localdir/backups/$RBackname $Localdir/backups/$LBackname # Uploading D
//Judge email
function Isemail () {
var RT = new Array ();
rt[0] = "\w+ ([-+.] \w+) *@\w+ ([-.] \w+) *\.\w+ ([-.] \w+) * ";
rt[1] = "should be the correct e-mail format!";
return RT;
}
//can only enter Chinese
function Onlyzh () {
var RT = new Array ();
rt[0] = "^[u0391-uffe5]+$";
rt[1] = "should be entered in Chinese!";
return RT;
}
//can only enter English
function Onlye
1. In the image below we enter the "Set" button below the application option under "Application" of the mobile phone.
2. Then in the setup we want to find "account" (third tab) as shown in the following figure.
3. Then in the Account Admin interface we will see an "email" Mailbox We click on it.
4.
Here we can find to delete, such as I take zhan@sina.com
as an example, click "Zhan@sina.com".
5. After
The basic idea to solve the problem is to send a message reminder when the standby machine is switched to a master.
Specific way:
The following configuration can be configured in the keepalived configuration:
Vrrp_instance Vi_1 {State MASTERInterface eth0virtual_router_id 13Priority 100Advert_int 1Authentication {Auth_type PassAuth_pass 6d02896810d442478799edcc47bcd62c}virtual_ipaddress {x.x.x.x}Track_script {Chk_haproxy}notify_master/usr/bin/change_master.sh}
In this way, the change_master.
names of instructions. Don't be frightened by it. In the results of your phpinfo (), look at the default values for SMTP and Sendmail_from-they are either blank or contain random values. You should change them to meaningful values. If you are determined to run an SMTP service program on this computer, your entry in the php.ini file should read as follows: SMTP = localhost However, if you want to use an outgoing mail server from your ISP (which is earthlink in this case), then the mail in php.in
if (eregi ("^[_.0-9a-z-]+@") ([0-9a-z][0-9a-z-]+.) +[a-z]$ ", $email)) { echo" your e-mail through preliminary check "; } ?> In this sentence, the first is to apply a eregi function, this function is also good to understand. Find a book, and I'll give you an explanation.: Syntax: int ereg (string pattern, string string, array [regs]); return value: Integer/array This function is P Attern the rule to parse the string. The value returned by the r
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.