xittle
-
Posts
5 -
Joined
-
Last visited
Posts posted by xittle
-
-
I changed it to that after 2.7 didn't work, knowing on some machines the actual executable is named python27. It was a tweak that didn't work. I just changed it back, and it doesn't work as before.
Partially Solved: I had tried 2.7 and 27 but didn't touch 3.6, which worked in the end. However, now the smtp part won't work.
-
I am still having this problem even with appropriate syntax changes.
I even commented out smtplib elements so that it just prints a list of argument values.
-
Update: I tried krydos's solution but I'm getting a 500 internal server error.
Help? Here is the python file (in cgi-bin):
#!/usr/bin/env pythonimport cgiimport smtplibargv=cgi.FieldStorage();s=smtplib.SMTP("mail.smtp2go.com", 2525);s.login((my username),(my password));s.sendmail(argv["sen"],sys.argv["rec"],sys.argv["mess"]);print("Content-type: text/html")print();print(argv); -
I've been setting up a notification system for users on a service I have set up on heliohost, but have encountered a major issue. I am sending mail via a python script (mail.py), which takes several arguments and sends the mail, but my php cannot use shell_execute or system to run this script. What is a method that is allowed on heliohost?
Run Python From Php
in Customer Service
Posted
Fixed line endings, however I still have the smtp problem.
I added some comments to my code to show where the problem is happening,