![]() |
|
|
#1 (permalink) |
|
Registered User
Join Date: Nov 2003
Posts: 21
|
Webmail - Not seeming to send
Following code used to work, project has been dormant for a month but back to it now.
dim cdoMail Set CDOMail = server.CreateObject("CDONTS.NewMail") With CDOMail .From = "reg@MyDomainName.com" .To = Trim(inTo) .Subject = inSubject .Body = inBody .MailFormat = 0 .Send End With Not seeming to sned this morning, have I messed something up and forgotten? Thanks ina advance Al |
|
|
|
|
|
#2 (permalink) |
|
Administrator
Join Date: May 2003
Posts: 1,299
|
Hi Al,
The From address must be an email address that exists on our mail server otherwise the mail will not go through. Regards, Jacob
__________________
Jacob Colton jacob@catalyst2.com Open a ticket | Knowledgebase | Rate catalyst2 | Review catalyst2 |
|
|
|
|
|
#4 (permalink) |
|
Administrator
Join Date: May 2003
Posts: 1,299
|
Hi Alex,
Yes, this has changed in the last month, it is setup in order to reduce spam. What is your domain name? Regards, Jacob
__________________
Jacob Colton jacob@catalyst2.com Open a ticket | Knowledgebase | Rate catalyst2 | Review catalyst2 |
|
|
|
|
|
#6 (permalink) |
|
Administrator
Join Date: May 2003
Posts: 1,299
|
Have they come through now?
__________________
Jacob Colton jacob@catalyst2.com Open a ticket | Knowledgebase | Rate catalyst2 | Review catalyst2 |
|
|
|
|
|
#9 (permalink) |
|
Administrator
Join Date: May 2003
Posts: 1,299
|
You're welcome
__________________
Jacob Colton jacob@catalyst2.com Open a ticket | Knowledgebase | Rate catalyst2 | Review catalyst2 |
|
|
|
|
|
#11 (permalink) |
|
Registered User
Join Date: Jan 2003
Location: UK
Posts: 181
|
Try using this code, it will send using a remote server ie mail.catalyst2.com and will give you more freedom to send text/html emails. This uses CDOSYS rather than CDONTs
Code:
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.Bcc="someoneelse@somedomain.com"
myMail.Cc="someoneelse2@somedomain.com"
myMail.HTMLBody = "<h1>This is a message.</h1>"
myMail.TextBody="This is a message."
myMail.AddAttachment "c:\mydocuments\test.txt"
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") _
="mail.catalyst2.com"
'Server port
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _
=25
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
%>
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|