Re: Sending email from within a web service
- From: "Joe" <J_no_spam@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 27 Sep 2005 16:51:12 -0400
The problem doesn't seem to be related to sending the email but calling the
web service. I'm getting a timed-out exception.
I'll repost with this problem.
"Joe" <J_no_spam@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:ObLjPz5wFHA.2132@xxxxxxxxxxxxxxxxxxxxxxx
>I have a method which sends email to & from a specific account. All was
>working fine until the server was upgraded to an AD/DNS server. Now the
>email never goes through.
>
> I can run the same code from an exe and it works fine.
>
> MailMessage mail = new MailMessage();
>
> mail.Body = msg;
> mail.From = emailfrom;
> mail.To = emailto;
> mail.Subject = "Test.";
>
> mail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"]
> = 2;
> mail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserver"]
> = "mail.mydomain.com";
>
> mail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserverport"]
> = 25;
>
> mail.Fields["http://schemas.microsoft.com/cdo/configuration/sendusername"]
> = "sender@xxxxxxxxxxxx";
>
> mail.Fields["http://schemas.microsoft.com/cdo/configuration/sendpassword"]
> = "******";
>
> SmtpMail.SmtpServer = "mail.mydomain.com";
> SmtpMail.Send(mail);
>
> Does the service need to be granted a certain permission?
>
>
>
.
- References:
- Sending email from within a web service
- From: Joe
- Sending email from within a web service
- Prev by Date: Sending email from within a web service
- Next by Date: Web App can't find web service
- Previous by thread: Sending email from within a web service
- Next by thread: Web App can't find web service
- Index(es):
Loading