Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

persits mailsender

Status
Not open for further replies.

yahve

Programmer
Nov 14, 2000
159
CA
Hi,

this code works on my test machine at home (W2K):

Code:
<%
Set Mail = Server.CreateObject(&quot;Persits.MailSender&quot;)

Mail.Host = &quot;someserver.com&quot;
Mail.From = fromemail
Mail.FromName = name
Mail.addAddress &quot;me@someserver.com&quot;
Mail.Subject = sujet
Mail.Body = message
Mail.IsHTML = True
Mail.Send
Set Mail = nothing

Set Mail = Server.CreateObject(&quot;Persits.MailSender&quot;)
Mail.Reset
Mail.Host = &quot;someserver.com&quot;
Mail.From = &quot;me@someserver.com&quot;
Mail.FromName = &quot;cie name&quot;
Mail.addAddress toemail
Mail.Subject = sujet
Mail.Body = resp
Mail.IsHTML = True
Mail.Send
Set Mail = nothing
%>

However, it doesn't work on the actual server (persits is installed). The first email gets sent but not the second. Notice that the first email goes to an address in the domain of the mail server, but not the second email. I know it should work anyway.

I think the problem is more with permissions and configuration of the web server itself than with persits' component or the vbscript code.

Am I right or am I missing something?.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top