muttCreate a Mutt configuration file (~/.MUTTRC) and, as follows, specify the Gmail SMTP server information in the file. will be replaced with your Gmail ID. Note that the configuration is only for sending messages (not receiving messages).$ VI ~/.MUTTRCSet from = "@gmail. com
install muttCreate a Mutt configuration file (~/.MUTTRC) and, as follows, specify the Gmail SMTP server information in the file. will be replaced with your Gmail ID. Note that the configuration is only for sending messages (not receiving messages).$ VI ~/.MUTTRCSet from = "@gmail.
do Sho Wmessage (' Send failed: ' + e.message '); end; finally if SMTP. connectedthen SMTP. disconnect; end; mailmessage.free; sslsocket.free; SMTP. Free;end, after compiling, requires the support of SSL dynamic library, which can be downloaded to the Indy website. If you need to send an attachment, you can send
; // 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 = smtpdeliverymethod. Network;Client. enablessl = true; // After SSL encryption, The
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.
Recently in writing a successful registration, the need for mail activation of the Web registration function, so the use of NetEase server smtp.163.com as a server host to send mail to registered users. In the process of debugging the old connection failed to encounter the exception (because it is done, forgot to copy the exception information, so no).Throughout
/wKiom1YbX02hNhwuAAOfj0jYdcg457.jpg "title=" 5.png " alt= "Wkiom1ybx02hnhwuaaofj0jydcg457.jpg"/>This step is required to verify the phone number and bind the phoneAssume that its client authorization password is: fdfdterefcstewrere3. Test mailbox Send[Email protected]_master ~]# echo "Mail Content" |mail-s test [email protected][Email protected]_master ~]# smtp-server:535 Error:authentication failed"/root/d
Send failed
error 1:SMTPLIB. Smtpauthenticationerror: (A, B ' User has no permission ')When we use Python to send a message, the custom client logs on with the user name and password, and then uses the SMTP service to send the mail, and the newly registered 163 mailboxes are not enabled by default, so logins are always denied. Workaround (Take 163 mailboxes for example): Enter 163 mailbox-set-Client author
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.