My website project is hosted locally and I want to use an email testing software. Is there a good recommendation? I have used smtp4dev, and this software is also good, but it is not very convenient to view the mail content, there are garbled characters, and there is no function to export the file format. PS: I don't want to implement mass mailing. I just want to test the mail. I want to use a local project
. Configure mailx
Vim/etc/mail. rc
set from=cmh@163.com smtp=smtp.163.comset smtp-auth-user=cmh@163.com smtp-auth-password=cmhset smtp-auth=login
Here I use 163 mailbox to send mail, cmh@163.com is the login user of 163 mailbox, smtp-auth-password is the password set in step 2.
4. Test whether emails can be sent normally.
echo "agent down" |mail -s "test mail" 12
Today, I accidentally found a functional module written in college, sorted it out, and did not make too many changes. I couldn't help but feel that the code I wrote was actually ...... Hehahaha, but the logic process of this module is correct, and now it contributes:
This project is used to demonstrate the process of Account Activation: register --> send an email to the specified mailbox --> log on to the u
]
Start the message transfer process by sending the helo digital.com command. Digital.com is the domain name for the mail server. The Mail service then returns a welcome message that starts with 250.
C:mail from:rayfeng@digital.com
s:250 2.1.0 Rayfeng@digital.com....sender OK
The next step is to enter the message sender's information mail from:. The Mail Service returned success information.
C:RCPT to:rayfeng@digital.com
s:250 2.1.5 Rayfeng@digital.com
Then it is through RCPT to: Spec
1.5 minutes to send email, and the message content is generated by the HTML Template table while (1) { //ten minute var_dump ("Check task, please don ' t close"); //send Email Processdbdata ($DB); //process Inventory State processinventorystate ($db, $tasks); sleep (5*60); } //read table data from Databas
1.5 minutes email, and the message content is a table generated by an HTML templatewhile (1){Ten minuteVar_dump ("Check task, please don ' t close"); Send emailProcessdbdata ($DB); Process Inventory StateProcessinventorystate ($db, $tasks); Sleep (5*60);}Read table data from databasefunction Processdbdata ($DB){$testplan _id = ";$temp = ";$TotalCaseNum = 0;$projectName = "; Check finished Testplan table->ta
Recently, a project needs to be sent by email. Phpmailer is used to send the email successfully, but a problem occurs when you set the display name (diplayname. The exchange2010smtp server is used to send emails. When I change to 163sina and other emails for sending, the set display name can be normally fed back, but i
, SMTP, and IMAP must be enabled and the authorization code must be enabled for mobile phone verification.
4. Refer to the send email in Laravel manual.
Note that the use Mail must be referenced first when the Controller references the email to be sent.
Test email sending
S
/IMAP to enable and enable the authorization code for mobile phone verification.
4. Refer to the send email in Laravel manual.
Note that the use Mail must be referenced first when the Controller references the email to be sent.
Test email sending
Set in route
Write
In the previous article Java email Development (II): Using JMail to send an email with illustrated text and attachments (I), we probably learned about the composition of an email.
The following is an email with the following requirements:
1. The body is a piece of html code
InternetAddress (mailInfo. getFromAddress (); // sets the sender of the email message mailMessage. setFrom (from); // create the recipient Address of the email and set it to Address to = new InternetAddress (mailInfo. getToAddress (); // Message. recipientType. the TO attribute indicates that the receiver type is TO mailMessage. setRecipient (Message. recipientType. TO, to); // set the subject of the
enable the authorization code for mobile phone verification.
4. refer to the send email in Laravel manual.
Note that the use Mail must be referenced first when the controller references the email to be sent.
Test email sending
Set in route
Write method in control
ObjectiveIn the practice of daily automated testing, we always need to send the relevant information such as records, results and so on in the test process to the relevant people through automatic means. Python's smtplib, email module provides us with a very good e-mail delivery and other functions of implementation.Plain Text MailIn general, we need to
= "scucj@126.com"/destination email address, which is sent to me haObjmailmessage.subject = "Mail send title: Hello";//Send the title of the messageObjmailmessage.body = "Send the contents of the message: test to see if the send
The request email is correct and completed (HELO, mail from, rcpt to, QUIT command execution will return this message)
354 start sending DATA and end with. (This message will be returned if the DATA command is executed successfully. the client should send the message)
500 syntax error. the command cannot be identified
550 the command cannot be executed, and the email
1. Use APACHE-commons-email to send mail is very simple, just need to load Three jar packages: commons-email-1.1.jar, mail. jar, activition. jar. Commons email aims to provide a API for sending email. It is built on top of the Java mail API, which it aims to simplify. Some o
Using Java applications to send e-mail is very simple, the following main demo, send ordinary email, send HTML type of email, send an email with attachments.First, configure the require
the server is in the following format: response code + space + explanation ):
220 service ready (this message is returned when the socket connection is successful)221 processing in progress250 The request email is correct and completed (HELO, mail from, rcpt to, QUIT command execution will return this message)354 start sending DATA and end with. (This message will be returned if the DATA command is executed successfully. the client should
:==============Simpleemail email = new Simpleemail (); SMTP host Email.sethostname ("mail.test.com"); Login mail server username and password email.setauthentication ("Test", "Testpassword"); Receiver Email.addto ("jdoe@somewhere.org", "John Doe"); Sender Email.setfrom ("me@apache.org", "Me"); Title Email.setsubject ("Test message"); The content of the message em
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.