简体   繁体   English

如何在没有Apple电子邮件应用程序的情况下将文本发送到我的电子邮件或MYSQL数据库

[英]How to send a text to my E-Mail or to my MYSQL database without the Apple's E-Mail-App

I created a form in the storyboard where you can type a text and then you can simply submit it to me. 我在情节提要中创建了一个表单,您可以在其中键入文本,然后只需将其提交给我即可。 But i don't like my way that after pressing the submit button the E-Mail app pops up and then you'll have to send the text from there. 但是我不喜欢这样,在按下提交按钮后,电子邮件应用程序弹出,然后您必须从那里发送文本。

So how can I send the text to me right after pressing "submit" without using the E-Mail App. 因此,在不使用电子邮件应用程序的情况下,如何在按“提交”后立即向我发送文本。 Are there certain php and swift examples on the internet? 互联网上是否有某些php和swift示例?

You can use the php mail function. 您可以使用php邮件功能。 Here is a link: 这里是一个链接:

php mail function php邮件功能

You can use PHPMailer, but you need to install postfix or sendmail on your server Here is the link for PHPMailer https://github.com/PHPMailer/PHPMailer 您可以使用PHPMailer,但是需要在服务器上安装postfix或sendmail。这是PHPMailer的链接https://github.com/PHPMailer/PHPMailer

Install and Setup Postfix on Ubuntu 14.04 https://www.digitalocean.com/community/tutorials/how-to-install-and-setup-postfix-on-ubuntu-14-04 and for othe OS you can search on internet. 在Ubuntu 14.04上安装和设置Postfix https://www.digitalocean.com/community/tutorials/how-to-install-and-setup-postfix-on-ubuntu-14-04 ,对于其他操作系统,您可以在Internet上搜索。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM