Skip to main content
22 events
when toggle format what by license comment
Dec 23, 2015 at 21:42 comment added Gabriel hey ChrisG, thanks mate ! It worked like a charm on the first attempt. Using it on my final project and it helped me a lot !
Jul 14, 2015 at 6:16 vote accept mojtaba1
Jul 14, 2015 at 6:16 comment added mojtaba1 Hi. firstly let me apologize and confess that I made a change in your suggested code, and after failing authentication I omitted the authentication and I thought it is natural and it should work, I know this may seem dishonest but I didn't mean that. secondly, after turning on the less secure (Access for less secure apps)now it works. more important than working the code is finding a good friend who did his best to guide me. sorry for my English as I'm not a native speeker
Jul 13, 2015 at 11:36 comment added mojtaba1 Hi dear friend. your attention to my problem made me happy by being such nice guys who are ready to help the others even they don't know. even after updating the appliance ( update50) I didn't succeed and still it gives error.but the most important thing is not the answer but having friends like you who are always ready to help. as soon as I got the answer or what I had made wrong, I'll let you know. appreciated. good luck
Jul 13, 2015 at 6:54 comment added ChrisG As a final advice try updating the Appliance by update50. I don't know what your error might be. The exact code works perfect for me. If anyone else can help I'd be glad to see another answer.
Jul 13, 2015 at 4:35 comment added mojtaba1 I checked it and it is runnign as it says (apache2 is running)
Jul 12, 2015 at 21:23 comment added ChrisG Try /etc/init.d/apache2 status.
Jul 12, 2015 at 21:19 comment added mojtaba1 i checked apache it's working as below from termial jharvard@appliance (~): pgrep apache 1435 1440 1441 1442 1443 1444 2989
Jul 12, 2015 at 21:10 comment added mojtaba1 my code is exactly what you wrote. is it needed to write it here?
Jul 12, 2015 at 21:05 comment added mojtaba1 i work inside appliance. I don't know about running Apache. how can I check it?
Jul 12, 2015 at 20:49 comment added ChrisG How are you running your code? Is it inside the Appliance? Is Apache running? Could you add a screenshot of your command/output? (make sure your mail and password are not visible)
Jul 12, 2015 at 20:43 comment added mojtaba1 thank you for your guidance but I tried the second code. still no result. error: SMTP Error: Could not authenticate. the link you mentioned above . I checked it totally. in username and in setFrom I enter my email ( myEmail.gmail.com) and for password I enter my gmail password . and for address I enter [email protected].
Jul 12, 2015 at 20:33 history edited ChrisG CC BY-SA 3.0
Added more info about the two step authentication and a new line.
Jul 12, 2015 at 20:16 history edited ChrisG CC BY-SA 3.0
added 2 characters in body
Jul 12, 2015 at 20:05 comment added ChrisG Check the edited answer, and also see the examples from CS50 too: manual.cs50.net/mail
Jul 12, 2015 at 20:04 comment added mojtaba1 of course i changed them > the username. the setFrom. the password. the address all changed to real ones. now it's two days that I am confused with this . thank you for your attention
Jul 12, 2015 at 20:04 history edited ChrisG CC BY-SA 3.0
Added working code.
Jul 12, 2015 at 19:31 comment added ChrisG Did you change the email addresses to real ones? For example to the one you own?
Jul 12, 2015 at 19:11 comment added mojtaba1 i exactly did your code .. the very same code .. but I got the error which I wrote previously
Jul 12, 2015 at 18:45 comment added ChrisG Could you add a little more code?
Jul 12, 2015 at 18:33 comment added mojtaba1 thank you for your consideration .I still have the problem ... the error is as SMTP Error: Could not authenticate. Mailer Error: SMTP Error: Could not authenticate.
Jul 12, 2015 at 18:05 history answered ChrisG CC BY-SA 3.0