Dim enteredtext AS STRING = mytextbox.text
mylabel.content = enteredtext
Run Code Online (Sandbox Code Playgroud)
如何使用户在文本框中输入的输入文本以粗体斜体或下划线打印到标签.应使用单选按钮启用这三个选项.
我尝试使用带有gmail的laravel 5.5发送电子邮件时收到错误.
MAIL_DRIVER=smtp
MAIL_HOST=gmail-smtp-msa.l.google.com
MAIL_PORT=587
MAIL_USERNAME=mygmailadress
MAIL_PASSWORD=mypassword
MAIL_ENCRYPTION=tls
Run Code Online (Sandbox Code Playgroud)
我将邮件主机从smtp.google.com更改为了那个,因为我无法访问smtp.google.com
这是我尝试发送邮件时遇到的错误
stream_socket_enable_crypto(): Peer certificate CN=`smtp.gmail.com' did not match expected CN=`gmail-smtp-msa.l.google.com'
Run Code Online (Sandbox Code Playgroud)
这是我在使用mail_host smtp.google.com时使用的错误
Connection could not be established with host smtp.google.com
[php_network_getaddresses: getaddrinfo failed: Name or service not known #0
Run Code Online (Sandbox Code Playgroud)
请注意,我的测试服务器mailtrap一切正常.那么我怎样才能将这项工作用于生产?