Another email object question...
Hi,
I have been using the new email object with SSL to connect to my GMail account.
I have it connecting to the SMTP server fine it seems. But when it comes to creating a message and sending it nothing seems to happen. I have added testing for connected to server and it reports as connected.
Then I have it create a message, set the to:, subject, body text and x-mailer before sending the message. Though nothing ever seems to get sent.
I have tried connecting to the server with Authentication and Plain methods, both seem to work?
EDIT: I have attached the events I am using
http://www.isaacgraphic.com/email.jpg
Re: Another email object question...
Just a further piece of info. I added tests to show when not connected and it appears to connect to the server and then instantly disconnect...
Any ideas?
Re: Another email object question...
I think that either your name or password is incorrect. Remember that the name is "MyName@gmail.com", not just "MyName". And I guess that the address should be smtp.gmail.com, but maybe both works. See to it that you use the correct port as well (465 or 587).
Re: Another email object question...
Google say that I must use port 995. I am using the full email address as a username (as Google instruct) and the password is correct.
As I said it connects but instantly disconnects upon connection.
Re: Another email object question...
have you setup your account to usepop and smtp? i had a problem with sending and receiving emails in outlook express from my gmail account and needed to enable pop and smtp in my account settings
Re: Another email object question...
Port 995 is pop, to receive emails.
Port 465 is smtp, the one you should use if you want to send.
And yes, you need to enable pop/smtp setting in your account.
Re: Another email object question...
ok changing the port to 465 works and gets a constant connection. I am still having the issue that the send email is not doing anything though.
Using the same code for sending email has above... Any ideas?
Re: Another email object question...
Does it say that last message was sent? If you check the error log, do you get any errors?
Re: Another email object question...
post an exe file but make it so that the username and password can be entered on the first frame and i will test ot on my account for you. only use standard mmf2 so can't test the mfa and i can't giv you my username and password for obvious reasons.
Re: Another email object question...
Problem solved, apparently a header for to: is also needed. Not sure if this is just for GMail or any other mail provider.
Thanks for your help though guys, the community pulls through again.