locked
Sending Emails RRS feed

  • Question

  • User-401818107 posted

    Hi expert,

    We have a page which can let the customers send the email about the marketing stuff from the site. But recenlty for some reason the customers cannot receive anything after they send it out from the site. If we log under our own domain address, it works fine. Could you advise what is going on? How to fix it? Thank you!

    Thursday, February 6, 2014 5:40 PM

Answers

  • User-401818107 posted

    Thank you all experts! I have finally worked it out. It is our server which blocks all of these.

    Again, thank you!

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 19, 2014 12:36 PM

All replies

  • User-797936686 posted

    Check your email here - http://mxtoolbox.com/blacklists.aspx

    Thursday, February 6, 2014 6:27 PM
  • User-1378019758 posted

    Hi Jessy,

    You may need to check whether your mail server is being blacklisted. Do you see bounce message? 

    If the mails can sent out, and the recipient dont receive it, maybe the mailbox is full. Please check both of them

    Thursday, February 6, 2014 9:54 PM
  • User-401818107 posted

    Thank you for your response, experts! It is wierd that when the persons in our company login to the website, they can send the promotional products from the site to anyone. Other than our company's email, our customers cannot send the promotions from our site even though they see the message on the screen that the email has been sent out, but noboday can receive it.

    Friday, February 7, 2014 3:01 PM
  • User-797936686 posted

    The email headers will be the issue i think.

    Users will be sending emails from their email addres? relay servers always have this problem.

    If you can send from your company email and set Reply to: to the customers email address (If it is ok)

    Friday, February 7, 2014 8:45 PM
  • User-401818107 posted

    There is no problem at all if we send to our customers and cc to the customers. But only the customers cannot send out using their email address.

    Monday, February 10, 2014 5:17 PM
  • User-1454326058 posted

    Hi Jessy,

    Please provide the code that send the email.

    Thanks

    Best Regards  

    Monday, February 10, 2014 10:03 PM
  • User1815411410 posted

    hi there,

    is your company email and your customer emails located on the SAME server? If they do, it s highly unlikely that your customers cannot send emails

    If they are located on the different servers, the issue may be located on the customer server. Please check and make sure the public IP address is opened for communication. The easiest way to test is to TELNET to the IP Address on port 25, 110 and 587. If you see any error message, it means that there is a blockage in the server (it can caused by the local firewall, antivirus software, etc)

    please try, for example, TELNET 111.222.111.222 25 --> testing port 25

    Hope this helps :)

    Monday, February 10, 2014 10:23 PM
  • User-401818107 posted

    Hi experts, thank you for all your advice! I will follow your advice and test. Actually we have some inquiry form on the site and we can receive their inquiries from the customers. But only this marketing promotional material with images.  I will test and let you know. Thank you!

    Wednesday, February 12, 2014 1:06 PM
  • User-401818107 posted

    Hi experts, I tried to telnet port 25, and it said it couldn't open the connection to the host,  on port 23 failed. I added the port 23 on the firewall, and telnet again, but it gave the same message. Thank you!

    Wednesday, February 12, 2014 1:28 PM
  • User-401818107 posted

    If I logged into our site using our customers account, and then sent out the promtional materials, I cced to me and my customers, and none of us could receive it.  Not sure what is going on.

    Wednesday, February 12, 2014 4:37 PM
  • User-1454326058 posted

    Hi,

    What's the send email code? Please provide it.

    Thanks

    Best Regards

    Sunday, February 16, 2014 7:15 AM
  • User-401818107 posted

    Hi expert, thank you for your response! Below is my code:


    Public Function sendpromotion(fromName_global, fromEmail_global, toBCC_global, toEmail_global, emailSubject_global, emailContent_global)

            
            if MailComponent = "local" then
            
                
                fromEmail_global = Replace(fromEmail_global, ",", ";")
                toEmail_global = Replace(toEmail_global, ",", ";")
                toBCC_global = Replace(toBCC_global, ",", ";")
                
                        Dim objMM as New MailMessage()
                        
                          
                          objMM.To = toEmail_global
                          objMM.From = fromEmail_global        
                          
                        
                          objMM.Bcc = toBCC_global
                        
                        
                          objMM.BodyFormat = MailFormat.Html
                          
                        
                          
                          objMM.Priority = MailPriority.Normal
                        
                        
                          objMM.Subject = emailSubject_global
                        
                          objMM.Body = emailContent_global                


                           objMM.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1")
                          objMM.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "xxx@xxx.com")
                           objMM.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "xxxxxx")                    
                          
                          
                                          
                          SmtpMail.SmtpServer = "mail.xxxx.com"

                       

                  Try
                    SmtpMail.Send(objMM)

                    Catch ex As Exception

                  
                    Return False

                         End Try

                      Return True

                  objMM = Nothing



                          
                    
            end if                            

            
            if MailComponent = "Enable" then

                emailContent_global = Replace(emailContent_global, chr(10), "<br />")
                fromEmail_global = Replace(fromEmail_global, ",", ";")
                toEmail_global = Replace(toEmail_global, ",", ";")
                toBCC_global = Replace(toBCC_global, ",", ";")
                
                    
                      dim objMail
                      
                      objMail=server.CreateObject("MEMail.Message")  
                      
                      objMail.MailFrom    = fromEmail_global
                      objMail.MailFromDisplayName = fromName_global
                      
                      objMail.ContentType = "text/html;"
                      
                      objMail.Subject = emailSubject_global
                      
                      objMail.MailTo     = toEmail_global
                      objMail.MailBCC    = toBCC_global
                             
                              
                      objMail.MessageBody = emailContent_global
                      objMail.SendMessage
                      
                      
                      objMail = nothing
                      
            end if
                    
    end Function

    Monday, February 17, 2014 11:27 AM
  • User-401818107 posted

    Hi expert,

    Is there anything wrong with the code that caused this problem? Please advise! Thank you!

    Tuesday, February 18, 2014 5:25 PM
  • User-1454326058 posted

    Hi,

    Do you try to use the other SMTP server?

    Thanks

    Best Regards

    Wednesday, February 19, 2014 2:22 AM
  • User-401818107 posted

    Thank you all experts! I have finally worked it out. It is our server which blocks all of these.

    Again, thank you!

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 19, 2014 12:36 PM