473,385 Members | 1,372 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Sending email from within a WebService

Joe
(sorry for the dual post here and the webservice NG. I meant to send to both
at the same time)

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"]
= "se****@mydomain.com";
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?


Nov 19 '05 #1
1 1058
"Joe" <J_no_spam@_no_spam_Fishinbrain.com> wrote in message
news:O0**************@TK2MSFTNGP09.phx.gbl...
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.


http://www.systemwebmail.com/
Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: anonymous | last post by:
Hi, I'am sending an xml string to a web service(which is written in c#) using the microsoft web services behavior. When I check this string from the web service I observed that some of the...
4
by: Flare | last post by:
OK. I'll try explain my problem so simple as possible. I have to send a complex data type to a WebService from a Asp.net webapplication. My Data type look like this. (A class with a porperty)...
8
by: Frank | last post by:
I think I've confused myself completely here :-) I have used System.Web.Mail, but am not sure if this works with Exchange Server 5.5. I asked the client if they're email server supported SMTP, and...
1
by: Nick Gilbert | last post by:
Hi, I'm trying to create a system whereby my desktop application submits it's order to an online server using a webservice (pretty standard!). So, I added a new project to my solution to...
3
by: Sydney | last post by:
Hi, I am trying to construct a WSE 2.0 security SOAP request in VBScript on an HTML page to send off to a webservice. I think I've almost got it but I'm having an issue generating the nonce...
3
by: JaffaCakes | last post by:
I want to send an email confirmation after a user completes a form on our Internet page. I am testing this with the System.Web.Mail.SmtpMail class. If I do a SmtpMail.Send then the message takes...
2
by: steve | last post by:
Hi All I need to learn how to update a SQl server or Access database located on a web server from my windows forms application, via the internet I have a customer who wants to run several...
1
by: Kirk | last post by:
I have a WS called "IWeb", which I define within the page class like this: Dim service As IWeb.WebService I then have a button that calls the web service like this: Dim header As...
2
by: ksheerasagar17 | last post by:
Hello All, Scenario: Sending an image through webservice as byte array to an Java webservice. The Problem1: The webservice method image property expects (data type) SByte rather than Byte...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.