我有一个网站,我在这里使用laravel电子邮件验证进行用户注册和其他电子邮件发送功能。它在本地主机上工作 但是当我在bluehost上上传它时 它运行非常缓慢 大约1到2个小时后,只有电子邮件会转到接收者的电子邮件
我已经使用webmail及其驱动程序来发送邮件,如果我使用Smtp,它说无法建立连接,如果我使用sendmail驱动程序,则发生同样的事情,电子邮件会花费很多时间。
我的.env配置
from os.path import dirname
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.screenmanager import ScreenManager, Screen
from kivymd.theming import ThemeManager
from kivy.properties import StringProperty
import time
Builder.load_string("""
#:import MDFillRoundFlatButton kivymd.button.MDFillRoundFlatButton
#:import MDIconButton kivymd.button.MDIconButton
<ScreenManagement>:
ScreenOne:
name: "screen_one"
ScreenTwo:
name: "screen_two"
ScreenThree:
name: "screen_three"
id: entry
ScreenFour:
name: "screen_four"
<ScreenOne>:
canvas:
Color:
rgb: [.30,.50,.99]
Rectangle:
pos: self.pos
size: self.size
FloatLayout:
MDFillRoundFlatButton:
color: [1,1,1,1]
text: "Перейти к созданию фото"
pos_hint: {'center_x':.50, 'center_y':.50}
on_press:
root.manager.transition.direction = 'up'
root.manager.transition.duration = 1
root.manager.current = 'screen_two'
<ScreenTwo>:
canvas:
Color:
rgb: [.30,.50,.99]
Rectangle:
pos: self.pos
size: self.size
FloatLayout:
MDFillRoundFlatButton:
color: [1,1,1,1]
text: "Выбрать фон"
pos_hint: {'center_x':.50, 'center_y':.10}
on_press:
root.manager.transition.direction = 'up'
root.manager.transition.duration = 1
root.manager.current = 'screen_three'
MDIconButton:
icon: 'chevron-double-right'
pos_hint: {'center_x':.95, 'center_y':.10}
on_press:
root.manager.transition.direction = 'down'
root.manager.transition.duration = 1
root.manager.current = 'screen_one'
<ScreenThree>:
id: entry
canvas:
Color:
rgb: [.30,.50,.99]
Rectangle:
pos: self.pos
size: self.size
FloatLayout:
Camera:
id: camera
index: 0
resolution: (1280,720)
play: True
MDFillRoundFlatButton:
text: "take photo"
pos_hint: {'center_x': 0.50, 'center_y': .10}
on_press:
root.capture() #TAKE PHOTO
root.manager.transition.direction = 'up'
root.manager.transition.duration = 1
root.manager.current = 'screen_four'
MDIconButton:
icon: 'chevron-double-right'
pos_hint: {'center_x':.95, 'center_y':.10}
on_press:
root.manager.transition.direction = 'down'
root.manager.transition.duration = 1
root.manager.current = 'screen_two'
<ScreenFour>:
canvas:
Color:
rgb: [.30,.50,.99]
Rectangle:
pos: self.pos
size: self.size
FloatLayout:
Image:
id: img
MDIconButton:
icon: 'chevron-double-right'
pos_hint: {'center_x':.95, 'center_y':.10}
on_press:
root.manager.transition.direction = 'down'
root.manager.transition.duration = 1
root.manager.current = 'screen_three'
""")
class ScreenOne(Screen):
pass
class ScreenTwo(Screen):
theme_cls = ThemeManager()
theme_cls.primary_palette = 'Blue'
main_widget = None
class ScreenThree(Screen):
theme_cls = ThemeManager()
theme_cls.primary_palette = 'Blue'
main_widget = None
photo = StringProperty('')
def capture(self):
camera = self.ids['camera']
self.photo = f"{dirname(__file__)}/IMG_{time.strftime('%Y%m%d_%H%M%S')}.png"
camera.export_to_png(self.photo)
print("Captured")
class ScreenFour(Screen):
def on_pre_enter(self, *args):
self.ids.img.source = self.manager.ids.entry.photo
class ScreenManagement(ScreenManager):
pass
class Interface(App):
def build(self):
return ScreenManagement()
sample_app = Interface()
sample_app.run()
答案 0 :(得分:0)
尝试ssl:
MAIL_ENCRYPTION=ssl
或尝试以下操作:
MAIL_DRIVER=mail
MAIL_HOST=mail.openroomlist.com
MAIL_PORT=26
MAIL_USERNAME=support@openroomlist.com
MAIL_PASSWORD=********
MAIL_ENCRYPTION=null
参考:
Send email on Bluehost shared hosting
有关bluehost电子邮件发送的更多详细信息:
https://my.bluehost.com/hosting/help/email-application-setup