Originally posted by Plater
C# E-mail Client Mails Not Received
Collapse
X
-
Ok now I don't know what you were doing.
You would not be able to send ANY email through gmail's mail servers without authenticating and using SSL, so you are probably using your company's mail server to send the mail. You must provide a valid login for THAT server in order to send emails successfully.Comment
-
Originally posted by PlaterOk now I don't know what you were doing.
You would not be able to send ANY email through gmail's mail servers without authenticating and using SSL, so you are probably using your company's mail server to send the mail. You must provide a valid login for THAT server in order to send emails successfully.Comment
-
Originally posted by cnixuserWell, I'm actually sending from the pc that I am running the application from. I set the SmtpClient as the local host (127.0.0.1). The pc is on a network independent from the one at work (a Verizon cellular modem). I do honestly have a misunderstandin g of how to use credentials. With my new description, do you believe still that I need the credentials for the server at my company which I would be sending to and not from?Comment
-
Hmmm no. It had actually not occured to me that you could be using localhost to send the emails. Will the final product be run in the same manor?
The crenedtials supplied are for the server you are sending mail from. so if you are sending mail from a localhost, I now understand your confusion about what credentials to send.
That being said there are a number of other things in the SMTP protocol that could cause your emails to be rejected. It's possible that godaddy implents the part of the protocol that says there needs to be a valid MX record for the address that is SENDING the messages.
i.e. it needs to be able to go -> somename@somedo main.com....che cking the lookup for somedomain.com
They may also go the next step which would be reverse validation and attempt to verify that someuser is a valid username in somedomain.com
and it could also be none of those and something else entirely.
Your best bet might be to get in touch with whoever handles your email and see if they can find anything in the logs about why your messages are rejectedComment
-
Originally posted by PlaterHmmm no. It had actually not occured to me that you could be using localhost to send the emails. Will the final product be run in the same manor?
The crenedtials supplied are for the server you are sending mail from. so if you are sending mail from a localhost, I now understand your confusion about what credentials to send.
That being said there are a number of other things in the SMTP protocol that could cause your emails to be rejected. It's possible that godaddy implents the part of the protocol that says there needs to be a valid MX record for the address that is SENDING the messages.
i.e. it needs to be able to go -> somename@somedo main.com....che cking the lookup for somedomain.com
They may also go the next step which would be reverse validation and attempt to verify that someuser is a valid username in somedomain.com
and it could also be none of those and something else entirely.
Your best bet might be to get in touch with whoever handles your email and see if they can find anything in the logs about why your messages are rejected
would send my local host's Credentials correct?Comment
-
Originally posted by cnixuserclient.UseDefau ltCredentials = true;
would send my local host's Credentials correct?Comment
-
Originally posted by PlaterMmm I think it actually looks in either machine.config or web.config (depending on application type) for them. Unsure what it will send if cannot find them.Comment
-
Comment
-
Originally posted by PlaterWell technically no, because I built my own SMTPClient as I disliked the built in one.
But yes, I *DO* send the authentication information to the mail server, my mail server won't send emails out unless you are a valid user.
hey plater, you said you built your own smtpclient class, that has to be awesome, how would you come across doing that? did you implement any of it with the webclient class? just curiousComment
Comment