Send email weirdness (PHP)

I've set up an web form on a site, which works fine, except
that my client is getting emails through OK, but apparently from my
email address rather than the address of the person sending them
(or at least the email address they enter into the email address
field of the form.)
The code is :
//start Trigger_SendEmail trigger
//remove this line if you want to edit the code by hand
function Trigger_SendEmail(&$tNG) {
$emailObj = new tNG_Email($tNG);
$emailObj->setFrom("{RSdummy.email}");
$emailObj->setTo("[email protected]");
$emailObj->setCC("");
$emailObj->setBCC("");
$emailObj->setSubject("Enquiry from Pixelar Site");
//WriteContent method
$emailObj->setContent("Hi Steve,\n\nPlease find my
details below.\n\nKind regards,\n\n{firstname} {lastname} \n\nTel :
{tel} \nEmail : {email} \n\nComments : {comments} \n\nPreferred
method of contact : {prefer}");
$emailObj->setEncoding("ISO-8859-1");
$emailObj->setFormat("Text");
$emailObj->setImportance("Normal");
return $emailObj->Execute();
//end Trigger_SendEmail trigger
//start Trigger_SendEmail1 trigger
//remove this line if you want to edit the code by hand
function Trigger_SendEmail1(&$tNG) {
$emailObj = new tNG_Email($tNG);
$emailObj->setFrom("[email protected]");
$emailObj->setTo("{email}");
$emailObj->setCC("");
$emailObj->setBCC("");
$emailObj->setSubject("Enquiry from Pixelar Site");
//WriteContent method
$emailObj->setContent("Hi {firstname},\n\nThank you for
your enquiry.\nWe'll be in touch soon.\n\nSteve,\nPixelar");
$emailObj->setEncoding("ISO-8859-1");
$emailObj->setFormat("Text");
$emailObj->setImportance("Normal");
return $emailObj->Execute();
//end Trigger_SendEmail1 trigger
I would have changed the email address in the first part to
mine to test, but why its lurking like a ghost now is just plain
weird.
I just tried changing it to my email address, and filled in
the form with my msn address, and it came through exactly as I'd
expect it to.
So I'm wondering if maybe there's something going on at my
client's end.
Hope that made sense, but it does seem a bit of an odd
one....
Any ideas?
Cheers.

The reason i want to use gmail because i can't use smtp university's mail server( looking to the apple server error log is say something about IsSMTP(); function. today, i had discussion with them(ICT dept) and they can't solve it as there's no apple server used before/now and no one familiar with it. they give me other alternative by using a "secret server", a subdomain name were given with no smtp authentication. no username or password were used, not even using any ssl or tsl security. they give me this last solution when i install joomla on the other windows server and try to use university smtp server with email account. error saying cannot connect to smtp server. i did try also using joomla on my apple server still with the error. so what i understand now is that its related to university global networking security/policy setting(correct me if i'm wrong). so for the SL server, its should be super easy to setup if you are yourself configuring the internet direct to your ISP. thanks very much to Camelt for quick answered. So i should not facing any problem with apple server if i bought and connect it direct to my ISP, right Camelot?

Similar Messages

  • Webserver on DMZ cannot send email via php script using SMTP (cisco firewall pix 515e)

    Hello,
    I have two web servers that are sitting in a DMZ behind a Cisco Firewall PIX 515e. The webservers appear to be configured correctly as our website and FTP website are up. On two of our main website, we have two contact forms that use a simple html for to call a php script that uses smtp as its mailing protocol. Since, I am not the network administrator, I don't quite understand how to  read the current configurations on the firewall, but I suspect that port 25 is blocked, which prevents the script from actually working or sending out emails.  What I've done to narrow the problem done is the following: I used a wamp server to test our scripts with our smtp servers settings, was able to successfully send an email out to both my gmail and work place accounts. Currently, we have backupexec loaded on both of these servers, and when I try to send out an alert I never receive it. I think because port 25 is closed on both of those servers.  I will be posting our configuration. if anyone can take a look and perhaps explain to me how I can change our webservers to communicate and successfully deliver mail via that script, I would gladly appreciate it. our IP range is 172.x.x.x, but it looks like our webservers are using 192.x.x.x with NAT in place. Please someone help.
    Thanks,
    Jeff Mateo
    PIX Version 6.3(4)
    interface ethernet0 100full
    interface ethernet1 100full
    interface ethernet2 100full
    nameif ethernet0 outside security0
    nameif ethernet1 inside security100
    nameif ethernet2 DMZ security50
    enable password GFO9OSBnaXE.n8af encrypted
    passwd GFO9OSBnaXE.n8af encrypted
    hostname morrow-pix-ct
    domain-name morrowco.com
    clock timezone EST -5
    clock summer-time EDT recurring
    fixup protocol dns maximum-length 512
    fixup protocol ftp 21
    fixup protocol h323 h225 1720
    fixup protocol h323 ras 1718-1719
    fixup protocol http 80
    fixup protocol rsh 514
    fixup protocol rtsp 554
    fixup protocol sip 5060
    fixup protocol sip udp 5060
    fixup protocol skinny 2000
    no fixup protocol smtp 25
    fixup protocol sqlnet 1521
    fixup protocol tftp 69
    names
    name 12.42.47.27 LI-PIX
    name 172.20.0.0 CT-NET
    name 172.23.0.0 LI-NET
    name 172.22.0.0 TX-NET
    name 172.25.0.0 NY-NET
    name 192.168.10.0 CT-DMZ-NET
    name 1.1.1.1 DHEC_339849.ATI__LEC_HCS722567SN
    name 1.1.1.2 DHEC_339946.ATI__LEC_HCS722632SN
    name 199.191.128.105 web-dns-1
    name 12.127.16.69 web-dns-2
    name 12.3.125.178 NY-PIX
    name 64.208.123.130 TX-PIX
    name 24.38.31.80 CT-PIX
    object-group network morrow-net
    network-object 12.42.47.24 255.255.255.248
    network-object NY-PIX 255.255.255.255
    network-object 64.208.123.128 255.255.255.224
    network-object 24.38.31.64 255.255.255.224
    network-object 24.38.35.192 255.255.255.248
    object-group service morrow-mgmt tcp
    port-object eq 3389
    port-object eq telnet
    port-object eq ssh
    object-group network web-dns
    network-object web-dns-1 255.255.255.255
    network-object web-dns-2 255.255.255.255
    access-list out1 permit icmp any any echo-reply
    access-list out1 permit icmp object-group morrow-net any
    access-list out1 permit tcp any host 12.193.192.132 eq ssh
    access-list out1 permit tcp any host CT-PIX eq ssh
    access-list out1 permit tcp any host 24.38.31.72 eq smtp
    access-list out1 permit tcp any host 24.38.31.72 eq https
    access-list out1 permit tcp any host 24.38.31.72 eq www
    access-list out1 permit tcp any host 24.38.31.70 eq www
    access-list out1 permit tcp any host 24.38.31.93 eq www
    access-list out1 permit tcp any host 24.38.31.93 eq https
    access-list out1 permit tcp any host 24.38.31.93 eq smtp
    access-list out1 permit tcp any host 24.38.31.93 eq ftp
    access-list out1 permit tcp any host 24.38.31.93 eq domain
    access-list out1 permit tcp any host 24.38.31.94 eq www
    access-list out1 permit tcp any host 24.38.31.94 eq https
    access-list out1 permit tcp any host 24.38.31.71 eq www
    access-list out1 permit tcp any host 24.38.31.71 eq 8080
    access-list out1 permit tcp any host 24.38.31.71 eq 8081
    access-list out1 permit tcp any host 24.38.31.71 eq 8090
    access-list out1 permit tcp any host 24.38.31.69 eq ssh
    access-list out1 permit tcp any host 24.38.31.94 eq ftp
    access-list out1 permit tcp any host 24.38.31.92 eq 8080
    access-list out1 permit tcp any host 24.38.31.92 eq www
    access-list out1 permit tcp any host 24.38.31.92 eq 8081
    access-list out1 permit tcp any host 24.38.31.92 eq 8090
    access-list out1 permit tcp any host 24.38.31.93 eq 3389
    access-list out1 permit tcp any host 24.38.31.92 eq https
    access-list out1 permit tcp any host 24.38.31.70 eq https
    access-list out1 permit tcp any host 24.38.31.74 eq www
    access-list out1 permit tcp any host 24.38.31.74 eq https
    access-list out1 permit tcp any host 24.38.31.74 eq smtp
    access-list out1 permit tcp any host 24.38.31.75 eq https
    access-list out1 permit tcp any host 24.38.31.75 eq www
    access-list out1 permit tcp any host 24.38.31.75 eq smtp
    access-list out1 permit tcp any host 24.38.31.70 eq smtp
    access-list out1 permit tcp any host 24.38.31.94 eq smtp
    access-list dmz1 permit icmp any any echo-reply
    access-list dmz1 deny ip any 10.0.0.0 255.0.0.0
    access-list dmz1 deny ip any 172.16.0.0 255.240.0.0
    access-list dmz1 deny ip any 192.168.0.0 255.255.0.0
    access-list dmz1 permit ip any any
    access-list dmz1 deny ip any any
    access-list nat0 permit ip CT-NET 255.255.0.0 192.168.220.0 255.255.255.0
    access-list nat0 permit ip host 172.20.8.2 host 172.23.0.2
    access-list nat0 permit ip CT-NET 255.255.0.0 LI-NET 255.255.0.0
    access-list nat0 permit ip CT-NET 255.255.0.0 NY-NET 255.255.0.0
    access-list nat0 permit ip CT-NET 255.255.0.0 TX-NET 255.255.0.0
    access-list vpn-split-tun permit ip CT-NET 255.255.0.0 192.168.220.0 255.255.255
    .0
    access-list vpn-split-tun permit ip CT-DMZ-NET 255.255.255.0 192.168.220.0 255.2
    55.255.0
    access-list vpn-dyn-match permit ip any 192.168.220.0 255.255.255.0
    access-list vpn-ct-li-gre permit gre host 172.20.8.2 host 172.23.0.2
    access-list vpn-ct-ny permit ip CT-NET 255.255.0.0 NY-NET 255.255.0.0
    access-list vpn-ct-ny permit ip CT-DMZ-NET 255.255.255.0 NY-NET 255.255.0.0
    access-list vpn-ct-tx permit ip CT-NET 255.255.0.0 TX-NET 255.255.0.0
    access-list vpn-ct-tx permit ip CT-DMZ-NET 255.255.255.0 TX-NET 255.255.0.0
    access-list static-dmz-to-ct-2 permit ip host 192.168.10.141 CT-NET 255.255.248.
    0
    access-list nat0-dmz permit ip CT-DMZ-NET 255.255.255.0 192.168.220.0 255.255.25
    5.0
    access-list nat0-dmz permit ip CT-DMZ-NET 255.255.255.0 LI-NET 255.255.0.0
    access-list nat0-dmz permit ip CT-DMZ-NET 255.255.255.0 NY-NET 255.255.0.0
    access-list nat0-dmz permit ip CT-DMZ-NET 255.255.255.0 TX-NET 255.255.0.0
    access-list static-dmz-to-ct-1 permit ip host 192.168.10.140 CT-NET 255.255.248.
    0
    access-list static-dmz-to-li-1 permit ip CT-DMZ-NET 255.255.255.0 CT-NET 255.255
    .248.0
    access-list vpn-ct-li permit ip CT-NET 255.255.0.0 LI-NET 255.255.0.0
    access-list vpn-ct-li permit ip CT-DMZ-NET 255.255.255.0 LI-NET 255.255.0.0
    access-list vpn-ct-li permit ip host 10.10.2.2 host 10.10.1.1
    access-list in1 permit tcp host 172.20.1.21 any eq smtp
    access-list in1 permit tcp host 172.20.1.20 any eq smtp
    access-list in1 deny tcp any any eq smtp
    access-list in1 permit ip any any
    access-list in1 permit tcp any any eq smtp
    access-list cap4 permit ip host 172.20.1.82 host 192.168.220.201
    access-list cap2 permit ip host 172.20.1.82 192.168.220.0 255.255.255.0
    access-list in2 deny ip host 172.20.1.82 any
    access-list in2 deny ip host 172.20.1.83 any
    access-list in2 permit ip any any
    pager lines 43
    logging on
    logging timestamp
    logging buffered notifications
    logging trap notifications
    logging device-id hostname
    logging host inside 172.20.1.22
    mtu outside 1500
    mtu inside 1500
    mtu DMZ 1500
    ip address outside CT-PIX 255.255.255.224
    ip address inside 172.20.8.1 255.255.255.0
    ip address DMZ 192.168.10.1 255.255.255.0
    ip audit info action alarm
    ip audit attack action alarm
    ip local pool ctpool 192.168.220.100-192.168.220.200
    ip local pool ct-thomson-pool-201 192.168.220.201 mask 255.255.255.255
    pdm history enable
    arp timeout 14400
    global (outside) 1 24.38.31.81
    nat (inside) 0 access-list nat0
    nat (inside) 1 CT-NET 255.255.0.0 2000 10
    nat (DMZ) 0 access-list nat0-dmz
    static (inside,DMZ) CT-NET CT-NET netmask 255.255.0.0 0 0
    static (inside,outside) 24.38.31.69 172.20.8.2 netmask 255.255.255.255 0 0
    static (DMZ,outside) 24.38.31.94 192.168.10.141 netmask 255.255.255.255 0 0
    static (inside,outside) 24.38.31.71 172.20.1.11 dns netmask 255.255.255.255 0 0
    static (DMZ,outside) 24.38.31.93 192.168.10.140 netmask 255.255.255.255 0 0
    static (DMZ,inside) 24.38.31.93 access-list static-dmz-to-ct-1 0 0
    static (DMZ,inside) 24.38.31.94 access-list static-dmz-to-ct-2 0 0
    static (inside,outside) 24.38.31.92 172.20.1.56 netmask 255.255.255.255 0 0
    static (DMZ,outside) 24.38.31.91 192.168.10.138 netmask 255.255.255.255 0 0
    static (DMZ,outside) 24.38.31.90 192.168.10.139 netmask 255.255.255.255 0 0
    static (inside,outside) 24.38.31.72 172.20.1.20 netmask 255.255.255.255 0 0
    static (inside,outside) 24.38.31.73 172.20.1.21 netmask 255.255.255.255 0 0
    static (inside,outside) 24.38.31.70 172.20.1.91 netmask 255.255.255.255 0 0
    static (DMZ,outside) 24.38.31.88 192.168.10.136 netmask 255.255.255.255 0 0
    static (DMZ,outside) 24.38.31.89 192.168.10.137 netmask 255.255.255.255 0 0
    static (inside,outside) 24.38.31.74 172.20.1.18 netmask 255.255.255.255 0 0
    static (inside,outside) 24.38.31.75 172.20.1.92 netmask 255.255.255.255 0 0
    access-group out1 in interface outside
    access-group dmz1 in interface DMZ
    route outside 0.0.0.0 0.0.0.0 24.38.31.65 1
    route inside 10.10.2.2 255.255.255.255 172.20.8.2 1
    route inside CT-NET 255.255.248.0 172.20.8.2 1
    timeout xlate 3:00:00
    timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
    timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00
    timeout uauth 0:05:00 absolute
    aaa-server TACACS+ protocol tacacs+
    aaa-server TACACS+ max-failed-attempts 3
    aaa-server TACACS+ deadtime 10
    aaa-server RADIUS protocol radius
    aaa-server RADIUS max-failed-attempts 3
    aaa-server RADIUS deadtime 10
    aaa-server LOCAL protocol local
    aaa-server ct-rad protocol radius
    aaa-server ct-rad max-failed-attempts 2
    aaa-server ct-rad deadtime 10
    aaa-server ct-rad (inside) host 172.20.1.22 morrow123 timeout 7
    aaa authentication ssh console LOCAL
    aaa authentication http console LOCAL
    aaa authentication serial console LOCAL
    aaa authentication telnet console LOCAL
    http server enable
    http 173.220.252.56 255.255.255.248 outside
    http 65.51.181.80 255.255.255.248 outside
    http 208.65.108.176 255.255.255.240 outside
    http CT-NET 255.255.0.0 inside
    no snmp-server location
    no snmp-server contact
    snmp-server community m0rroW(0
    no snmp-server enable traps
    floodguard enable
    sysopt connection permit-ipsec
    sysopt connection permit-pptp
    crypto ipsec transform-set 3des-sha esp-3des esp-sha-hmac
    crypto ipsec transform-set 3des-md5 esp-3des esp-md5-hmac
    crypto dynamic-map dyn_map 20 match address vpn-dyn-match
    crypto dynamic-map dyn_map 20 set transform-set 3des-sha
    crypto map ct-crypto 10 ipsec-isakmp
    crypto map ct-crypto 10 match address vpn-ct-li-gre
    crypto map ct-crypto 10 set peer LI-PIX
    crypto map ct-crypto 10 set transform-set 3des-sha
    crypto map ct-crypto 15 ipsec-isakmp
    crypto map ct-crypto 15 match address vpn-ct-li
    crypto map ct-crypto 15 set peer LI-PIX
    crypto map ct-crypto 15 set transform-set 3des-sha
    crypto map ct-crypto 20 ipsec-isakmp
    crypto map ct-crypto 20 match address vpn-ct-ny
    crypto map ct-crypto 20 set peer NY-PIX
    crypto map ct-crypto 20 set transform-set 3des-sha
    crypto map ct-crypto 30 ipsec-isakmp
    crypto map ct-crypto 30 match address vpn-ct-tx
    crypto map ct-crypto 30 set peer TX-PIX
    crypto map ct-crypto 30 set transform-set 3des-sha
    crypto map ct-crypto 65535 ipsec-isakmp dynamic dyn_map
    crypto map ct-crypto client authentication ct-rad
    crypto map ct-crypto interface outside
    isakmp enable outside
    isakmp key ******** address LI-PIX netmask 255.255.255.255 no-xauth no-config-mo
    de
    isakmp key ******** address 216.138.83.138 netmask 255.255.255.255 no-xauth no-c
    onfig-mode
    isakmp key ******** address NY-PIX netmask 255.255.255.255 no-xauth no-config-mo
    de
    isakmp key ******** address TX-PIX netmask 255.255.255.255 no-xauth no-config-mo
    de
    isakmp identity address
    isakmp nat-traversal 20
    isakmp policy 10 authentication pre-share
    isakmp policy 10 encryption 3des
    isakmp policy 10 hash sha
    isakmp policy 10 group 2
    isakmp policy 10 lifetime 86400
    isakmp policy 20 authentication pre-share
    isakmp policy 20 encryption 3des
    isakmp policy 20 hash md5
    isakmp policy 20 group 2
    isakmp policy 20 lifetime 86400
    isakmp policy 30 authentication pre-share
    isakmp policy 30 encryption 3des
    isakmp policy 30 hash md5
    isakmp policy 30 group 1
    isakmp policy 30 lifetime 86400
    vpngroup remotectusers address-pool ctpool
    vpngroup remotectusers dns-server 172.20.1.5
    vpngroup remotectusers wins-server 172.20.1.5
    vpngroup remotectusers default-domain morrowny.com

    Amit,
    I applaud your creativity in seeking to solve your problem, however, this sounds like a real mess in the making. There are two things I don't like about your approach. One, cron -> calling Java -> calling PHP -> accessing database, it's just too many layers, in my opinion, where things can go wrong. Two it seems to me that you are exposing data one your website (with the PHP) that you may not want expose and this is an important consideration when you are dealing with emails and privacy and so on.
    I think the path of least resistance would be to get a new user account added to the MySQL database that you can access remotely with your Java program. This account can be locked down for read only access and be locked down to the specific IP or IP range that your Java program will be connecting from.
    Again I applaud your creativity but truly this seems like a hack because of the complexity and security concerns you are introducing and I think is a path to the land of trouble. Hopefully you will be able to get a remote account set up.

  • Send email weirdness

    I've set up an web form on a site, which works fine, except that my client is getting emails through OK, but apparently from my email address rather than the address of the person sending them (or at least the email address they enter into the email address field of the form.)
    The code is :
    //start Trigger_SendEmail trigger
    //remove this line if you want to edit the code by hand
    function Trigger_SendEmail(&$tNG) {
    $emailObj = new tNG_Email($tNG);
    $emailObj->setFrom("{RSdummy.email}");
    $emailObj->setTo("[email protected]");
    $emailObj->setCC("");
    $emailObj->setBCC("");
    $emailObj->setSubject("Enquiry from Pixelar Site");
    //WriteContent method
    $emailObj->setContent("Hi Steve,\n\nPlease find my details below.\n\nKind regards,\n\n{firstname} {lastname} \n\nTel : {tel} \nEmail : {email} \n\nComments : {comments} \n\nPreferred method of contact : {prefer}");
    $emailObj->setEncoding("ISO-8859-1");
    $emailObj->setFormat("Text");
    $emailObj->setImportance("Normal");
    return $emailObj->Execute();
    //end Trigger_SendEmail trigger
    //start Trigger_SendEmail1 trigger
    //remove this line if you want to edit the code by hand
    function Trigger_SendEmail1(&$tNG) {
    $emailObj = new tNG_Email($tNG);
    $emailObj->setFrom("[email protected]");
    $emailObj->setTo("{email}");
    $emailObj->setCC("");
    $emailObj->setBCC("");
    $emailObj->setSubject("Enquiry from Pixelar Site");
    //WriteContent method
    $emailObj->setContent("Hi {firstname},\n\nThank you for your enquiry.\nWe'll be in touch soon.\n\nSteve,\nPixelar");
    $emailObj->setEncoding("ISO-8859-1");
    $emailObj->setFormat("Text");
    $emailObj->setImportance("Normal");
    return $emailObj->Execute();
    //end Trigger_SendEmail1 trigger
    I would have changed the email address in the first part to mine to test, but why its lurking like a ghost now is just plain weird.
    I just tried changing it to my email address, and filled in the form with my msn address, and it came through exactly as I'd expect it to.
    So I'm wondering if maybe there's something going on at my client's end.
    Hope that made sense, but it does seem a bit of an odd one....
    Any ideas?
    Cheers.

    Oh yeah, I forgot to mention, I've tried that. The default account is set to my present email address, the rogue address that I deleted last year but is coming up as my 'from' address isn't even listed in that or any other section of settings. Can't think of anything else to rid myself of it

  • Sending email via PHP: "unknown sender" says gMail?...

    Hi all
    I am having an issue with email I send through a form, using
    php.
    The email is sent and everything works fine, except that the
    sender is not correctly identified:
    gMail lists the email sender as "(unknown sender)", while
    other email programs list it as
    "[email protected]", which is the account name of the
    hosting company...
    here's my headers declaration in PHP:
    $headers = 'Content-type: text/html;
    charset=iso-8859-1'."\r\n";
    $headers .= 'To: '.$to."\r\n";
    $headers .= 'From: Price Quote Request
    <[email protected]>'."\r\n";
    $subject = 'Quote Request from MoMAcorporategifts.org
    ('.date('m.d.y').')';
    I assumed that the From line would take care of this, bbut
    apparently not...
    How can I solve this?
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    An Ingenious WebSite Builder:
    http://sitelander.com

    Joe Makowiec wrote:
    > On 25 Jul 2007 in macromedia.dreamweaver, (_seb_) wrote:
    >
    >> Hi all
    >>
    >> I am having an issue with email I send through a
    form, using php.
    >>
    >> The email is sent and everything works fine, except
    that the sender
    >> is not correctly identified: gMail lists the email
    sender as
    >> "(unknown sender)", while other email programs list
    it as
    >> "[email protected]", which is the account
    name of the
    >> hosting company...
    >>
    >> here's my headers declaration in PHP:
    >>
    >> $headers = 'Content-type: text/html;
    charset=iso-8859-1'."\r\n";
    >> $headers .= 'To: '.$to."\r\n";
    >> $headers .= 'From: Price Quote Request
    >> <[email protected]>'."\r\n"; $subject =
    'Quote Request from
    >> MoMAcorporategifts.org ('.date('m.d.y').')';
    >>
    >> I assumed that the From line would take care of
    this, bbut
    >> apparently not...
    >>
    >> How can I solve this?
    >
    > Assuming that your mail function is set up correctly,
    there are two
    > things which look kinda off to me:
    > - You're using \r\n in the strings; I've only ever used
    newline (\n),
    > and that's what the manual calls for
    > - If you're setting the function up correctly, you have
    two 'to'
    > headers (one in the mail function where it belongs; one
    in the added
    > headers). mail() takes three to five parameters:
    >
    > bool mail ( string $to, string $subject, string $message
    [, string
    > $additional_headers [, string $additional_parameters]] )
    >
    > If you include 'To' in additional_headers, it may well
    confuse the
    > server.
    >
    >
    http://www.php.net/manual/en/function.mail.php
    >
    I ALWAYS use \r\n for line feeds, for cross-platfrom
    compatibility (Windows use \n and ignore \r,
    Macs use \r\n)
    I tried removing the "to:" from the header, gMail still
    displays the received email as "unknown sender"
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    An Ingenious WebSite Builder:
    http://sitelander.com

  • Code issue in php form - submit button not sending email

    Created a form that was originally supposed to open up to 2 pages depending on what was clicked. Clear would send you to an error page, and submit would send you to a thank you page. Decided that was a waste and so did not create the html pages. BUT, wanted the form info for the contact page.
    Here is the issue: it will not submit when submit is clicked. It clears when you click clear, but there's no email coming from the site via submit.
    Do I need to edit the php form code if I don't want the other pages? I've looked at what I have but I don't see if there is a form error or anything here. Here is the code for anyone who wants to have a look. Thanks in advance.
    <?php
    // get posted data into local variables
    $EmailFrom = "EMAIL FROM WEP PAGE - CONTACT - ";
    $EmailTo = "[email protected]";
    $Subject = "EMAIL FROM jennylowhar.com - CONTACT -";
    $name = Trim(stripslashes($_POST['name']));
    $telephone = Trim(stripslashes($_POST['telephone']));
    $email = Trim(stripslashes($_POST['email']));
    $comments = Trim(stripslashes($_POST['comments']));
    // validation
    $validationOK=true;
    if (Trim($name)=="") $validationOK=false;
    if (Trim($email)=="") $validationOK=false;
    if (!$validationOK) {
      print "<meta http-equiv=\"refresh\" content=\"0;URL=error.html\">";
      exit;
    // prepare email body text
    $Body = "";
    $Body .= "name: ";
    $Body .= $name;
    $Body .= "\n";
    $Body .= "telephone: ";
    $Body .= $telephone;
    $Body .= "\n";
    $Body .= "email: ";
    $Body .= $email;
    $Body .= "\n";
    $Body .= "comments: ";
    $Body .= $comments;
    $Body .= "\n";
    // send email
    $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");
    // redirect to success page
    if ($success){
      print "<meta http-equiv=\"refresh\" content=\"0;URL=thankyou.html\">";
    else{
      print "<meta http-equiv=\"refresh\" content=\"0;URL=error.php\">";
    ?>

    I'm confused by that, but I know this works.
    $fname=STRIPSLASHES($_POST['fname']);
    $lname=STRIPSLASHES($_POST['lname']);
    $title=STRIPSLASHES($_POST['title']);
    $company=STRIPSLASHES($_POST['company']);
    $street=STRIPSLASHES($_POST['street']);
    $town=STRIPSLASHES($_POST['town']);
    $zip=STRIPSLASHES($_POST['zip']);
    $phone=STRIPSLASHES($_POST['phone']);
    $fax=STRIPSLASHES($_POST['fax']);
    $county=STRIPSLASHES($_POST['county']);
    $phone=STRIPSLASHES($_POST['phone']);
    $email=STRIPSLASHES($_POST['email']);
    $comments=STRIPSLASHES($_POST['comments']);
    $date=STRIPSLASHES($_POST['date']);
    $time=STRIPSLASHES($_POST['time']);
    $location=STRIPSLASHES($_POST['location']);
    $from="$email";
    $to="putemailhere";
    $subject="Submission from Contact Form";
    $msg= "This is a submission from yoururl.com.\n\n"
    . "Clients Name: $fname . $lname \n"
    . "Title: $title\n"
    . "Company Name: $company\n"
    . "Street Address: $street\n"
    . "Town:$town\n"
    . "Zip: $zip\n"
    . "Telephone: $phone\n"
    . "Email Address: $email\n"
    . "Comments: $comments\n";
    mail($to, $subject, $msg, 'From:' .$from);
    PS, go back and edit your origial post and REMOVE your email.
    Gary

  • Developers Toolbox: MX Send Email php script generator

    Hi,
    I read Foundation PHP for Dreamweaver 8 (I have CS4
    Dreamweaver but it’s still a good book).
    In it, the author claims, that InterAKT has a product called
    “MX Send Email” in the MX Kollection 3 suite of
    Dreamweaver extensions, which automates the process of writing the
    php script to process and send web email form data from forms
    created in Dreamweaver, to the mail server. I went to their site
    and it re directs to Adobe, and Adobe claims that they acquired
    InterAKT a few years ago and included the above product in the
    Developers Toolbox.
    I downloaded the developers toolbox yesterday and for the
    life of me I can’t figure out where I could find it or how it
    works, it's very frustrating. Which makes me wonder if I should
    plunk down an extra 300 bucks for the developers toolbox,
    documentation is spotty at best – I can’t find any
    books or discussion forums on the developers toolbox on how to use
    this feature in the dev toolbox. No one seems to know anything
    about it on the Extensions forum. Can someone give me some info
    about this?
    It seems to me there should be a simple way to generate some
    PHP script for feedback forms created in Dreamweaver, especially
    with the Developers toolkit.My other alternative is to buy a third
    party extension to generate the scripts for 30 bucks, but if the
    toolkit has it somewhere, where is the documentation or tutorial on
    the adobe web site (which I dug for almost all day yesterday?
    The Dev Toolkit has an option to insert a Captcha image so I
    assume it's possible to do that too...
    Or, Are there any on line tutorials which instruct on how to
    create an email "Contact Us" form with Dreamweaver 4, which
    includes info on writing the php script to process form data and
    send it to mail server? If so can anyone direct me to it? Adobe has
    one for Dreamweaver CS 3 on their site - but even that section of
    the adobe site is not updated for CS4 and the tutorial even claims
    that the Developers toolbox is not yet compatible with DW CS4 yet,
    which contradicts the system requirements for the Dev Toolbox when
    one downloads it.

    Mr. Powers,
    Thanks for the info! BTW I really enjoyed reading your book a
    few years ago, it really helped me to learn Dreamweaver back then.
    I’m quite rusty now and trying to get back up to speed after
    not using it for a few years. Sorry to hear about the ADDT thingy.
    Thanks for the thread DWFAQ.info, I bookmarked the threads
    and will read them over the weekend. Thanks for the Dreamweaver
    Developer Toolbox link too! I had no idea that there was a Dev
    toolbox forum I was looking for it on the adobe site for two days,
    now I just noticed it has been included on the main index page, I
    don’t think it was posted there yesterday but maybe I missed
    it.
    Does anyone know if there are any books possibly in the works
    or being planned for the toolbox?
    Also I’m kind of curious now, are the mixed feelings
    about the toolbox because it (appears but I’m no expert), to
    be a bit less user friendly for the average web designer? Either
    that or just not enough documentation yet?
    I had never heard about the toolbox until I bought my CS4
    suite a few weeks ago. From above -
    quote:
    "what has now become Adobe Dreamweaver Developer Toolbox"
    - what
    was the toolbox? Is the toolbox the former InterAKT suite or
    extensions? Or was it a mix of theirs and/or other extension
    authors stuff? Did adobe buy up a few companies and add their own
    stuff to it and market it as the toolbox?
    When was the toolbox first released? Recently? Did Adobe
    create it out of the merger with InterAkt? I’ve been out of
    the web design loop for a few years, just trying to catch up on
    what’s been going on lately.

  • Could Send Email also parse PHP files

    Hi,
    looking to set up a email newsletter system....can "send email to recipients from recordset" be used to send a php page? or only html/htm files?

    Hi,
    Email clients can read in HTML but I don't know any that can read php pages. You are able to make an HTML page that can have values carried over from your forms and placed into the final HTML page, giving you dynamic values within your email.

  • In Thunderbird, I cannot send email. I am asked to enter an email address in Mail and Newsgroup Account settings but when I click on this option, nothing opens.

    I can connect to Thunderbird and receive email. However, I cannot send emails. When I press send (either from replying to an email or entering an email address manually) I get the following error message:
    Sending of message failed.
    No sender specified. Please fill in your email address in the Mail & Newsgroup Account settings.
    When I click on the menu option within the email message Tools/Mail & Newsgroup, the message minimises and the programme returns me to my inbox. There is no Mail & Newsgroup setting on the mail programme.

    Sorry, I don't use Thunderbird and this is the Firefox support forum.
    Thunderbird support is over here. <br />
    https://support.mozillamessaging.com/en-US/home <br />
    or here: <br />
    http://forums.mozillazine.org/viewforum.php?f=39

  • Cant send email from new iphone

    Hey I hope the following will make sense.?
    I got an new phone and have "added" my hotmail account to the mail.
    It accepts my email address and password.
    I can receive emails however I am unable to send emails.
    When I attempted to send an email a message comes up saying "The user name or password for address is incorrect" but it is all correct as it allows me to receive emails.
    I have deleted and restored the account a few times, any other ideas would be greatly appreciated.
    Thanks

    Try checking your SMTP details. See if the SMTP server settings or your username and password is correct there. Receiving is done with different details so in a way they will be different.
    I have found some similar threads:
    https://discussions.apple.com/thread/3684975
    http://forums.macrumors.com/showthread.php?t=1253661
    Unfortunately, this is the wrong forum for this question. Please check the right forum and post. You could also try posting in Where
    is the Forum For…?
    Kunal G

  • Unable to send email from iPhone or ipad, Unable to send email from iPhone or ipad

    Recently, I have become unable to send emails from my comcast email account.  I tried uninstalling and reinstalling the account, but get an error (Cannot send. Username or password for Comcast invalid).  The username and password are correct, though, as my email works fine on my non-Mac laptop. Any suggestions?

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Using a POP account with multiple devices
    http://support.apple.com/kb/ht3228
    iOS: Adding an email account
    http://support.apple.com/kb/HT4810
    iOS: Setting up an Outlook.com, Hotmail, Live, or MSN email account
    http://support.apple.com/kb/ht1694
    iPhone, iPad, iPod touch: Microsoft Outlook 2003, Outlook 2007, Outlook 2010 may not display contacts and calendars after sync
    http://support.apple.com/kb/TS1944
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say “Cannot Connect to Server”?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    Gmail Account Will Not Connect to Gmail Server
    http://support.apple.com/kb/ts3058
    How to Delete Email on the iPad
    http://ipad.about.com/od/iPad_Guide/ss/How-To-Delete-Email-On-The-Ipad.htm
    How to Mass Delete Emails from iPhone and iPad Inbox (with video)
    http://suiteminute.com/how-to-mass-delete-emails-from-iphone-and-ipad-inbox/
    How to delete ALL mail messages from iPhone/iPad in one step
    http://www.conferencesthatwork.com/index.php/technology/2014/01/how-to-delete-al l-mail-messages-from-iphoneipad-in-one-step/
    How to add, send and open iPad email attachments
    http://www.iskysoft.com/apple-ipad/ipad-email-attachments.html
    How to Sync Contacts with Your iPad Using iTunes
    http://www.dummies.com/how-to/content/how-to-sync-contacts-with-your-ipad-using- itunes.html
    Importing a Contact List CSV to the iPad
    http://techchannel.radioshack.com/importing-contact-list-csv-ipad-2235.html
    iOS: ‘Mailbox Locked’, account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    iCloud: Create a group and add contacts to it
    http://support.apple.com/kb/PH2667
    eMail Groups - You can use a third party app that many users recommend.
    MailShot -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    Group Email -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
    How to delete an email account on your iPad
    http://www.shoppepro.com/support/knowledgebase/228/How-to-delete-an-email-accoun t-on-your-iPad.html
     Cheers, Tom

  • Posting contact form to variable email address PHP

    Hi all, another one!
    I want the email address to be the hidden variable in the form below - variable higlighted in Red. What would I put for "$to ="?
    Any help would be appreciated.
    Tom
    <?php
    if (array_key_exists('send' , $_POST)) {
              // mail processing script
              // remove escape characters from POST array
    if (PHP_VERSION < 6 && get_magic_quotes_gpc()) {
      function stripslashes_deep($value) {
        $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
        return $value;
      $_POST = array_map('stripslashes_deep', $_POST);
    $to = '';
              $subject = '';
              //list expected fields
              $expected = array('name', 'email', 'comments');
              //set required fields
              $required = array('name', 'comments');
              //create empty array for any missing fields
              $missing = array();
              // assume that there is nothing suspect
              $suspect = false;
              // create a pattern to locate suspect phrases
              $pattern = '/Content-Type:|Bcc:|Cc:/i';
                // function to check for suspect phrases
      function isSuspect($val, $pattern, &$suspect) {
        // if the variable is an array, loop through each element
              // and pass it recursively back to the same function
              if (is_array($val)) {
          foreach ($val as $item) {
                  isSuspect($item, $pattern, $suspect);
                } else {
          // if one of the suspect phrases is found, set Boolean to true
                if (preg_match($pattern, $val)) {
            $suspect = true;
              // check  the $_POST array and any subarrays for suspect content
              isSuspect($_POST, $pattern, $suspect);
              if ($suspect) {
                        $mailSent = false;
                        unset($missing);
              } else {
              //proces the $_POST Variables
              foreach ($_POST as $key => $value) {
                        //assign temporary variable and strip whitespace if not an array
                        $temp = is_array($value) ? $value: trim($value);
                        //if empty and required, add to $missing array
                        if (empty($temp) && in_array($key, $required)) {
                                  array_push($missing, $key);
                        } elseif (in_array($key, $expected)) {
                                  //otherwise, assign to a variable of the same name as $key
                                  ${$key} = $temp;
              // validate the email address
      if (!empty($email)) {
        // regex to identify illegal characters in email address
        $checkEmail = '/^[^@]+@[^\s\r\n\'";,@%]+$/';
              // reject the email address if it doesn't match
        if (!preg_match($checkEmail, $email)) {
          $suspect = true;
          $mailSent = false;
          unset($missing);
              //go ahead ONLY if not suspect and all required fields OK
              if (!$suspect && empty($missing)) {
              // build the message
              $message = "Name: $name\r\n\r\n";
              $message .= "Email: $email\r\n\r\n";
              $message .= "Message: $comments\r\n\r\n";
              //limit line length to 70 characters
              $message = wordwrap($message, 70);
              //Create aditional headers
              $headers = "From: Website Enquiry\r\n";
              $headers .= 'Content-Type: text/plain; charset=utf-8';
              if (!empty($email)) {
              $headers .= "\r\nReply-To: $email";
              //send it
              $mailSent = mail($to, $subject, $message, $headers);
              if ($mailSent) {
                        //$missing is no longer needed if the email is sent, so unset it
                        unset($missing);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <?php
    if ($_POST && $mailSent) { ?>
    <META HTTP-EQUIV="Refresh" CONTENT="5;URL=index.php">
    <?php } ?>
    <title></title>
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <link href="style/style.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-11804201-5']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    </head>
    <body<?php if ($_POST && $mailSent){ ?> onLoad="redirect()"<?php } ?>>
    <img src="images/photography/background.jpg" alt="Jack Wilesmith Furniture Design" class="bg" id="bg" />
    <div id="container">
      <div id="Header">
      </div>
      <div id="content">
    <?php
    if ($_POST && isset($missing) && !empty($missing)) {
              ?>
        <p class="warning"><strong>Please complete the missing item(s) indicated.</strong></p><br />
        <?php
    } elseif ($_POST && !$mailSent) {
              ?>
        <p class="warning"><strong>Sorry, there was a problem sending your message, please try again later. </strong></p><br />
              <?php
    } elseif ($_POST && $mailSent) {
              ?>
        <p><strong>Your Message has been sent succesfully - <strong>You will be redirected in 5 seconds</strong></strong></p><br />
    <SCRIPT LANGUAGE="JavaScript"><!--
    function redirect () { setTimeout("go_now()",5000); }
    function go_now ()   { window.location.href = "index.php"; }
    //--></SCRIPT>
        <?php } ?>
        <form id="form1" name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
        <p>
          <label for="name">Name:</label><br />
          <input name="name" type="text" class="textInput" id="name"
          <?php if (isset($missing)) {
    echo 'value="' . htmlentities($_POST['name'], ENT_COMPAT, 'UTF-8') . '"';
    ?>
          /> <?php
                if (isset($missing) && in_array('name', $missing)) {?> <span class="warning">Please enter your name</span><?php } ?>
        </p><br />
        <p>
          <label for="email">Email:</label><br />
          <span id="sprytextfield1">
          <input name="email" type="text" class="textInput" id="email"
          <?php if (isset($missing)) {
    echo 'value="' . htmlentities($_POST['email'], ENT_COMPAT, 'UTF-8') . '"';
    ?>
          />
    <span class="textfieldInvalidFormatMsg">Invalid format.</span></span>
          <?php
                if (isset($missing) && in_array('email', $missing)) {?> <span class="warning">Please enter your Email Address</span><?php } ?>
        </p><br />
        <legend></legend>
        <p>
          <label for="comments">Message:</label><br />
          <textarea name="comments" id="comments" cols="45" rows="5"><?php if (isset($missing)) {
                        echo htmlentities($_POST['comments'], ENT_COMPAT, 'UTF-8');
                } ?></textarea><?php
                if (isset($missing) && in_array('comments', $missing)) {?> <span class="warning">Please enter a Message</span><?php } ?>
        </p><br />
        <p class="clearIt">
          <input name="send" type="submit" id="send" value="Send message" />
        </p>
         <input name="email" type="hidden" id="email" value="[email protected]" />
    </form>
    </div>
    </div>
    <script type="text/javascript">
    <!--
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "email", {isRequired:false, hint:"[email protected]"});
    //-->
    </script>
    </body>
    </html>

    Lovely, simple but beautiful!
    Thanks for that.
    T

  • I can no longer send emails through my school email once I updated Mozilla.

    My school uses an online system to send emails to other students and to the instructors. When I attempt to do so there appears to be a "script" error and it says that either keep running or stop. if i do either the email doesn't go through. This is very important because Im starting an online class soon.

    Are you referring to Angel LMS from Blackboard?
    That should work with the Firefox 3.6.19 version that you used to post this.<br />
    Angel doesn't appear to support Firefox 7, so you may have to wait to update to that version.<br />
    You should update to Firefox 3.6.23 to get the latest security patches.
    See also:
    *http://helpdesk.oneonta.edu/xoops/modules/smartsection/item.php?itemid=167

  • Sending Email using both HTML and plain text

    I could use some advise on how to start researching email for
    both HTML and plain text messages.
    I have a script called class.phpMail.php, but the code is
    alittle advanced for me. Basically I can't get
    it to work on my server and I don't know where to begin the
    learning process here.
    I talked to my provider, "HOST" company goDaddy.com and I was
    told that to connect so that I could send email I would need this
    line of code. They didn't say it should by in my php.ini file but
    that was where I found it.
    SMTP = relay-hosting.secureserver.net
    This is the smtp address that my provider uses to make the
    connection with my mail client.
    I was told that with this line of code I would not need a
    password or username
    I did some further reseach and I found an article that stated
    that my original error:
    Warning: fsockopen() expects parameter 2 to be long, string
    given in ...../php/class.smtp.php on line 105
    was being caused by this code because the $port value needed
    to be between 1 - 65365:
    $this->smtp_conn = fsockopen($host, # the host of the server
    $port, # the port to use ----- "this is line 105"
    $errno, # error number if any
    $errstr, # error message if any
    $tval); # give up after ? secs
    In particular the $port value was coming in corrupted and
    that I needed to cast it.
    I did as they suggested and made it an (int) as they
    suggested.
    $this->smtp_conn = fsockopen($host, # the host of the server
    (int)$port, # the port to use
    $errno, # error number if any
    $errstr, # error message if any
    $tval); # give up after ? secs
    It resolved part of the error message however, the other half
    of the error message is shown below:
    Message could not be sent.
    Mailer Error: Language string failed to load: connect_host
    What exactly is the connect_host they refer to in this
    message?
    Would it be the string in my php.ini file refering to the
    SMTP = relay-hosting.secureserver.net
    I have allot of what I think are disconnected questions as I
    really have just begun to work
    with the mail() function. If anyone has the time to educate
    this newbie into the wonderful
    world of email() I would appreciate it.
    Thank You
    Kevin Raleigh

    Sorry to dig up an old post, but we've spent the last few days trying to work out why an email campaign being sent from BC is going into the Junk folder of recipients that use MS Exchange. We've fixed quite a lot of issues, including the fact that Legacy Templates have random JS injected just before they get sent, so we had to switch to the new template system. We've narrowed the issue down to one of three things:
    1. A missing alt tag on the tracking image that BC drops into the email (pretty unlikely)
    2. The BC Europe IP (54.240.14.45) is blacklisted here: UCEPROTECTL2 (possible, but if you actually look it's not the IP itself, but another IP on the same network, so unlikely)
    3. The fact that the HTML email has no text component.
    I agree, BC is late on this but I think that it needs to be added, even if most users have HTML-ready email clients, spam checkers do seem to prefer multi-MIME emails.
    This is backed up by the following SpamAssassin rule, which we are currently unable to resolve:
    -1.105
    MIME_HTML_ONLY
    Message only has text/html MIME parts
    You should also include a text version of your message (text/plain)
    So in my opinion, BC do still need to add this as a feature, otherwise the system is not viable for our customers and we'll have to look elsewhere.

  • Issue with script timeouts - trying to send email mail shots - hosting recommendations?

    Background is this - I look after a site for a recruitment agency, which has a backend mySQL database.
    It includes a table of potential candidates, which the site owner can search based on various criteria and then send all the returned candidates an email about potential jobs they might be interested in.
    I'm using an off the shelf script to send the emails, and have jumped through a few hoops to get this to work, but it looks like we need to move hosting unfortunately.
    The script is able to limit emails so that the hosting company doesn't get black flagged as a spammer.
    I've set it up with a progress bar in a new window so the site owner can see progress, but easily get back to the rest of the site.
    But where we have come unstuck is the script timeout on the server - so even though its set to send emails slowly enough, ie under 500 emails an hour, because of that slow pace, it fails if it takes more then five minutes to send them all as the script times out.
    My understanding is that the script includes a line to reset the script timeout value to 0, so enabling the script to keep running until all the emails have been sent. But unfortunately our current hosting company does not allow the script timeout to be reset at the PHP level.
    So my question is this - is anyone doing anything similar, and if so, can you recommend any hosting company that does allow the script timeout to be reset at the PHP level?
    Because at the minute it seems like a frustrating catch-22 - slow it down to get around the spam issue, and it won't run long enough to send all the emails. Speed it up, and it falls foul of the script timeout.
    Any advise on this, or hosting suggestons most welcome!
    Thanks.

    Although there is an AppleScript Forum, Automator can run AppleScripts, so sometimes things can go in either forum. In your script, other than not setting a recipient, you are just getting one of the persons. You need to get a list of your contact information, then build your outgoing messages from that list - for example:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    set theEmails to {} -- this will be a list of email addresses
    set theNames to {} -- this will be a list of names for the greeting
    tell application "Address Book"
    activate
    set theGroup to (choose from list (get the name of every group) with prompt "Choose a Group") as text
    if theGroup is "false" then return -- cancel
    repeat with aPerson in (get every person of group theGroup) -- build email and name lists
    set the end of theEmails to the first item of (get the value of the email of aPerson) -- just the first address
    set the end of theNames to the first name of aPerson
    end repeat
    end tell
    tell application "Mail"
    repeat with anItem from 1 to (count theEmails) -- make a new message for each entry
    tell (make new outgoing message at the front of outgoing messages with properties {subject:"Test Mail"})
    set visible to true
    get item anItem of theNames
    if the result is missing value then -- no name
    set the content to "message"
    else
    set the content to "Dear " & the result & "," & return & return & "message"
    end if
    make new to recipient at the end of to recipients with properties {address:(item anItem of theEmails)}
    end tell
    end repeat
    activate
    end tell
    </pre>

  • Send email default sender to match email settings of logged in user

    Hi,
    I was wondering how i could add this into my site.
    If you look at other sites the user can put in their email settings and then view their inbox from within the site when logged in.
    1st Question is:  What settings do I need to store in a table for the user to setup their email settings.  I assume the obvious server name, username and password.
    2nd Question is: Does anyone know how to add in an email view, free would be good.
    3rd Question which is the most important to addt is this:  I want the user to input their email settings in their user profile page so hence need to know what settings to store in the table.  From their i want to when using the addt send email SB to check the user logged in session and match the userid and use their settings to send the email.
    I know how to use the recordset to get the settings of the person who has logged in as that is not too difficult but instead of using the kt default sender which you input in control panel i would want it to use the person who has logged ins email settings,  how can i stop addt from using the default sender and what code would i use in my page for addt to send the email using that person email settings?
    Hope someone can help.
    Many thanks

    hi,
    thanks for getting back to me.  what i was hoping was that the user could send the email via the site suing their own email settings?
    so say the domain is domain.com which the newsletter application sits on.  but the user has his own domain of example.com with his own email settings.
    what i have done is create a mini newsletter system using addt.  i wanted to allow the user to input their own mail server settings and when it clicked send addt would use the email settings to send the email via php.
    there is newsletter system like "constant contact" which you can use to send using their system however it comes into the inbox as if from the person who sent it.
    hope you can help.
    many thanks

Maybe you are looking for

  • Why does Iphoto 8.1.2 not open & ask for an upgrade?

    I was running iPhoto 8.1.2 on my IMAC purchased in 2009 fine until I had a HDD crash and needed to reinstall it from the ILife disk that came with it.  I no longer can open it on my IMAC running 10.7.5 as I get these errors: and What do I need to do?

  • OSB, xquery and Assign issue

    Hello all I have an issue that I cannot quite understand... I have a very simple proxy service, that I would like to receive an xml of this form: <SO so_att1="soatt" xsi:noNamespaceSchemaLocation="Split.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchem

  • Downloading Photos from Web show

    I am wondering if LR can be set somehow to not let people DL the pictures or at least not print from the LR web presentation? THx

  • Insert multiple files onto a single track, not one file per track

    Hello, In both Audition CS5.5 and CS6, when the user inserts multiple files into a multitrack session, they are placed on multiple tracks. (As the help file says, "The files are inserted on separate tracks at the current time position"). Please chang

  • Big problems with my graphic card and 865neo2

    i am using msi865pe neo2(no lan) p4 2.8 800mhz 2X512mb kinstom ram sapphire radeon graphic card sound blaster exdigy msi dvd msi cdrw 52m there is a very weird problem tt i am facing now,the latest radeon catalyst is 3.8,but when i use this driver,my