Mailbox configuration Open the settings and enable the IMAP/SMTP service Enable POP3/SMTP service Get the authorization code and save it Introduce Pom dependencies <dependency> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> <version>1.4</version> </dependency> Supported servers sina.com: POP3 server address: pop3.sina.com.cn (port: 110) SMTP server address: smtp.sina.com.cn (port: 25) sinaVIP: POP3 server: pop3.vip.sina.com (port: 110) SMTP server: smtp.vip.sina.com (port: 25) sohu.com: […]
Tag: send
NotificationSend a notification
<?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” android:orientation=”vertical” tools:context=”.MainActivity”> <Button android:text=”General notification” android:onClick=”normal” android:layout_width=”match_parent” android:layout_height=”wrap_content”/> <Button android:text=”group notification” android:onClick=”groupNotify” android:layout_width=”match_parent” android:layout_height=”wrap_content”/> <Button android:text=”progress bar notification” android:onClick=”progressNotify” android:layout_width=”match_parent” android:layout_height=”wrap_content”/> <Button android:text=”custom notification” android:onClick=”divNotify” android:layout_width=”match_parent” android:layout_height=”wrap_content”/> </LinearLayout> package com.bawei.day3_notificationdemo; import androidx.appcompat.app.AppCompatActivity; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Intent; import android.os.Build; import android.os.Bundle; import android.view.KeyEvent; […]
Vb.net regularly sends emails and udp watches
Imports Quartz Imports System.Net.Mail Imports System.Text.RegularExpressions ”’ <summary> ”’ material information automatic synchronization task ”'</summary> <DisallowConcurrentExecution> Public Class Cls_DsxxtsMESJob Implements IJob Private JobName As String = “Scheduled message push” Private Shadows smtpClient As New SmtpClient() Public Sub Execute(context As IJobExecutionContext) Implements IJob. Execute Dim strSql As String = String. Empty Dim strBody As String = […]
About using C# to call Win32API, grab third-party handles, simulate mouse clicks, and send keyboard events
Because the recent work needs to be used, I sorted out the basic knowledge The following examples, Win32 and self-encapsulated libraries are all in the project file Link: https://pan.baidu.com/s/1imOVeULlxe82Ejv0dPNy_Q?pwd=6666 Extraction code: 6666 –Sharing from Baidu Netdisk Super Member V1 1 Install handle grabber SPY++ The tool I use is SPY++ If you don’t have this […]
About sending local notifications before IOS10
Reference link: https://www.cnblogs.com/XYQ-208910/p/11777352.html IOS4-IOS9 uses UILocalNotification to send local notifications, and IOS10 uses UNNotification. Difference: UILocalNotification and UNNotification are classes used to send local notifications and remote notifications in iOS, and there are some differences and different characteristics between them. Variations supported by iOS version UILocalNotification was introduced in iOS 4 and remained until iOS […]
[LitCTF 2023] Click on the Flag to send it! (cookie forgery)
Just enter a name try admin But we found something in the cookie session: “eyJuYW1lIjoiYWRtaW4ifQ.ZGs1vw.7ikpuOhUtXxyB2UV-FH7UGIZkaE” Think of session forgery Let me talk about the role of session first: Since the http protocol is a stateless protocol, that is to say, the first request and the second request of the same user are completely irrelevant, but […]
STM32H723ZGT6 CAN1 CAN2 send and receive
Note: Discuss each other, if there is any reference, please do not use it for profit. 1. Connected to the document, this document only focuses on CAN 2. Stm32CubeMX configuration 2. Code Note: Discuss each other, if there is any reference, please do not use it for profit. /* Includes ——————————————– ———————-*/ #include “fdcan.h” /* […]
ZYNQ sdk lwip configures UDP multicast to send and receive data
1, vivado build Check the configuration of the PS network port or PL network port, and import the SDK, create a new lwip routine library, and it can be pinged. 2. SDK environment configuration Create a new lwip echo server routine, add system.mss->modify BSP’s Settings in the bsp environment lwip202->iggmp_options->true 3, main.c #include <stdio.h> #include […]