1. Error descriptionDEBUG:setDebug:JavaMail version 1.3.3debug:getprovider () returning JAVAX.MAIL.PROVIDER[TRANSPORT,SMTP, Com.sun.mail.smtp.smtptransport,sun Microsystems, Inc]debug Smtp:useehlo True, Useauth TrueDEBUG smtp:trying to connect To host ' localhost ', port, Isssl falseexception in thread ' main ' javax.mail.MessagingException:Could not connect to S MTP Host:localhost,
When you do not use the SMTP port 25 to send an email, some low-Permission execution environments may throw an exception. You 'd better check the permissions before performing the operation.
SMTP has the following permissions in. Net: smtppermission type (and declarative smtppermissionattribute attributes, all of whic
The old left received an email from a previous VPS merchant today and mentioned that the SPAM message sent by VPS was suspended. This small VPS was also activated during the test. I forgot to use it later. It is estimated that the password was too simple or other factors were used to send emails. Many people may have encountered this problem.First of all, if you encounter such a problem, reinstall the system, set a complicated password, modify the port
. In short, Gmail's SMTP server is great for your personal use, but not for commercial bulk mail.Having said that, it's time to show you how to use Gmail's SMTP server in a Linux environment.Google Gmail SMTP server SettingsIf you want to send mail through your app using Gmail's SM
. In short, Gmail's SMTP server is great for your personal use, but not for commercial bulk mail. Having said that, it's time to show you how to use Gmail's SMTP server in a Linux environment.Google Gmail SMTP server SettingsIf you want to send mail through your app using Gmail's S
. When you reach any limit, your Gmail account will be temporarily locked for one day. In short, the SMTP server of Gmail is very good for your personal use, but it is not suitable for Commercial batch mail.
Now, it's time to show you how to use Gmail's SMTP server in Linux.
Google
Phpmailer version used: 5.2.1
The following are some of the code given in the example folder of Phpmailer: test_gamil_basic.php.
The code is as follows
$mail = new Phpmailer (); $body = file_get_contents (' contents.html '); $body = $_post[' body ']; $body = Eregi_replace ("[]", ", $body); $mail-gt;issmtp (); Telling the class to use SMTP $mail-gt;smtpdebug = 2; Enables SMTP
声明:以下步骤在drupal7下测试通过(将gmail换为有smtp 服务器的sina邮箱可以发送邮件)1.下载smtp模块:http://drupal.org/project/smtp(link is external)2.解压模块,并在drupal下安装smtp模块。3.配置stmp服务器:admin/config/system/smtp页面下配置 Turn this module on or off: On
use indy SMTP to send Gmail messages in Delphi [Go]2012-01-01 22:44:30|Category: Delphi | Tags: | Report | Font size Big medium small subscription e-mail in Delphi is very simple, the way to send SSL Gmail email is also very simple, as long as the use of idsmtp attached to a tidssliohandlersocket on it. Using Controls procedure SendMail (Stomail, Ssub
Phpmailer version used: 5.2.1The following are some of the code given in the example folder of Phpmailer: test_gamil_basic.php.
The code is as follows
Copy Code
$mail = new Phpmailer ();$body = file_get_contents (' contents.html '); $body = $_post[' body '];$body = Eregi_replace ("[]", ", $body);$mail->issmtp (); Telling the class to use SMTP$mail->smtpdebug = 2; Enables SMTP d
Document directory
Gmail has been providing POP3 and SMTP for a long time.
Gmail has provided POP3 and SMTP for a long time in the blog garden to search, and there is no relevant post mentioned, so post it out. Gmail with the POP service is certainly more attractive.
I searched in the blog garden and did not mention it in related posts, so I posted it. Gmail with the POP service is certainly more attractive.Setting methods on various platforms (the port has changed to pop: 995, SMTP: 465, not the default port ):Http://gmail.google.com/support/bin/answer.py? CTX =
TIPS:
SMTP and POP3 In Gmail are both SSL-encrypted.
Step1. PHP OpenSSL module (Extension) Support
Step2. download phpmailer Library
Step3. change code 'class. phpmailer. php' and 'class. SMTP. php'
Add property is_ssl (VAR $ is_ssl = false;) to phpmailer and SMTP ;)
The smtpconnect method in phpmailer i
; // key point. An ID value is obtained here.// Message. attachments. Add (Attachment); // you can add multiple attachments.
Smtpclient client = new smtpclient ();Client. Host = strsmtpserver; // set the host name or IP address of the SMTP transactionClient. Port = intport; // port numberClient. usedefacrecredentials = true;Client. deliverymethod = smtpdeliveryme
Include("Class. phpmailer. php");// Imports phpmailer class to others
$ Mail=NewPhpmailer ();// Create a new object
$ Mail-> Issmtp ();// Set the SMTP mode for sending messages
$ Mail-> Smtpauth = true;// You need a license to set SMTP.
$ Mail-> Smtpsecure ="SSL";// The SMTP host of Gmail needs to use SS
Note: I was planning to use Sina ,(SMTP.Sina.com), but after testing, I feel this is very unstable. So I switched to the SMTP service of Gmail, and it felt very stable and fast. Record it to help later!
Method 1Bytes ------------------------------------------------------------------------------------------------------// Using system. net. mail;Mailmessageage message = new mailmessageage ();Message. From =
163.com:POP3 Server address: pop.163.com (port: 110)SMTP Server address: smtp.163.com (port: 25)126 e-Mail:POP3 Server address: pop.126.com (port: 110)SMTP Server address:
Laravel4and Laravel5Messages are sent in exactly the same way. Laravel5The mail is sent in Chinese document in: http://Laravel-china.org/docs/5.0/mailIn this article, I will163The mailbox, for example, shows how to send a message using the Laravel built-in mail delivery class.ConfigurationModify the Mail send configuration.4.2In app/config/mail.php,5In config/mail.php, modify the following configuration:'Host'='smtp.163.com','
Many settings contain multiple protocols. Just like the port on which Telnet is connected to the SNMTP server we will explain today. How can this problem be solved? Next we will explain in detail how to telnet to port 25 on the computer running the Simple Mail Transfer Protocol (SMTP) Service to solve
In the use of Telnet sessions, we can still take some effective measures for SMTP communication. today we will explain this part. you can select the following troubleshooting steps based on your problem type. for example, if you encounter problems when sending emails through SMTP between two Microsoft Exchange 2000 Server servers, you can test the SMTP connection
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.