I have tried about every way possible, but nothing seems to work this time.
What is the correct way to send mail from a Jodo .NET web server?
Currently, I have the following in my web.config:
The "noreply" user is a valid user, using the specified login credentials.
This particular client runs their email through Google Apps. It is my understanding that we can't authenticate to Google Apps from Jodo because we cannot run .NET web apps in full trust mode due to shared hosting. Google Apps requires a secure connection, which is not available in our trust mode. For this reason, I created a subdomain for this account called "service". The only reason for this domain is to send out email, hence the references to "service" in the above web.config excerpt.
Then, in my mail code, I'm calling the SMTP object like so:
I'm receiving the following error:
Any ideas?
thanks,
-brit
What is the correct way to send mail from a Jodo .NET web server?
Currently, I have the following in my web.config:
Code:
<system.net>
<mailSettings>
<smtp>
<network host="mail.service.mydomain.com" userName="[email protected]" password="mypassword" defaultCredentials="false" port="587" />
</smtp>
</mailSettings>
</system.net>
The "noreply" user is a valid user, using the specified login credentials.
This particular client runs their email through Google Apps. It is my understanding that we can't authenticate to Google Apps from Jodo because we cannot run .NET web apps in full trust mode due to shared hosting. Google Apps requires a secure connection, which is not available in our trust mode. For this reason, I created a subdomain for this account called "service". The only reason for this domain is to send out email, hence the references to "service" in the above web.config excerpt.
Then, in my mail code, I'm calling the SMTP object like so:
Code:
SmtpClient mSmtpClient = new SmtpClient();
mSmtpClient.Send(mMailMessage); //where nMailMessage uses "[email protected]" as the from address
I'm receiving the following error:
Mailbox name not allowed. The server response was: sorry, that domain isn't allowed to be relayed thru this MTA (#5.7.1)
Any ideas?
thanks,
-brit